CurrencyStatusAttribute Class
Definition
Associates a CurrencyStatus with a CurrencyCode enum member.
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
public sealed class CurrencyStatusAttribute : Attribute
- Inheritance
-
CurrencyStatusAttribute
- Attributes
-
System.AttributeUsageAttribute
- Inherited Members
- Extension Methods
Remarks
The attribute is the declarative source of truth for a currency's lifecycle status. Query it efficiently through GetStatus(CurrencyCode), which caches the reflected values at type initialization.
Constructors
CurrencyStatusAttribute(CurrencyStatus)
Initializes a new instance of the CurrencyStatusAttribute class.
public CurrencyStatusAttribute(CurrencyStatus status)
Parameters
statusCurrencyStatusThe lifecycle status assigned to the annotated currency.
Properties
Status
Gets the lifecycle status assigned to the annotated currency.
public CurrencyStatus Status { get; }
Property Value
- CurrencyStatus
The CurrencyStatus carried by the annotated member.
Applies to
| Product | Versions |
|---|---|
| .NET | 8, 10 |