Table of Contents

CurrencyStatusAttribute Class

Definition

Namespace
Bodu.Financial.Currencies
Assembly
Bodu.Financial.dll
Package
Bodu.Financial 1.0.0
Source
CurrencyStatusAttribute.cs

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

status CurrencyStatus

The 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

ProductVersions
.NET8, 10