ArcFM Desktop Developer Guide
PureAttribute Class
Members  Example 


Product Availability
Required Licenses
.NET Assembly
Indicates that a method does not make any observable state changes. The same as System.Diagnostics.Contracts.PureAttribute
Object Model
PureAttribute Class
Syntax
'Declaration
 
<AttributeUsageAttribute(ValidOn=AttributeTargets.Method, 
   AllowMultiple=False, 
   Inherited=True)>
Public NotInheritable Class PureAttribute 
   Inherits System.Attribute
'Usage
 
Dim instance As PureAttribute
[AttributeUsage(ValidOn=AttributeTargets.Method, 
   AllowMultiple=false, 
   Inherited=true)]
public sealed class PureAttribute : System.Attribute 
Example
[Pure] private int Multiply(int x, int y) { return x * y; }
public void Foo() {
  const int a = 2, b = 2;
  Multiply(a, b); // Waring: Return value of pure method is not used
}
Inheritance Hierarchy

System.Object
   System.Attribute
      Miner.Desktop.DesignerExpress.Annotations.PureAttribute

Requirements

Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

PureAttribute Members
Miner.Desktop.DesignerExpress.Annotations Namespace

 

 


Send Comment