DecimalConstantAttribute Class
Stores the value of a System.Decimal constant in metadata.
The DecimalConstantAttribute type is not CLS-compliant. For more information about CLS compliance, see What is the Common Language Specification.
For a list of all members of this type, see DecimalConstantAttribute Members.
System.Object
System.Attribute
System.Runtime.CompilerServices.DecimalConstantAttribute
[Visual Basic] <AttributeUsage(AttributeTargets.Field Or _ AttributeTargets.Parameter)> <CLSCompliant(False)> <Serializable> NotInheritable Public Class DecimalConstantAttribute Inherits Attribute [C#] [AttributeUsage(AttributeTargets.Field | AttributeTargets.Parameter)] [CLSCompliant(false)] [Serializable] public sealed class DecimalConstantAttribute : Attribute [C++] [AttributeUsage(AttributeTargets::Field | AttributeTargets::Parameter)] [CLSCompliant(false)] [Serializable] public __gc __sealed class DecimalConstantAttribute : public Attribute [JScript] public AttributeUsage(AttributeTargets.Field | AttributeTargets.Parameter) CLSCompliant(false) Serializable class DecimalConstantAttribute extends Attribute
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Remarks
You can apply this attribute to fields or parameters.
For more information about constant attributes, see the CustomConstantAttribute class.
The classes in System.Runtime.CompilerServices are for compiler writers use only.
Requirements
Namespace: System.Runtime.CompilerServices
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework
Assembly: Mscorlib (in Mscorlib.dll)
See Also
DecimalConstantAttribute Members | System.Runtime.CompilerServices Namespace