Miner.Desktop.DesignerExpress Assembly > Miner.Desktop.DesignerExpress.Annotations Namespace : PureAttribute Class |
System.Diagnostics.Contracts.PureAttribute
'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
[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 }
System.Object
System.Attribute
Miner.Desktop.DesignerExpress.Annotations.PureAttribute
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.