Table of Contents

CurrencyCodeExtensions Class

Definition

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

Provides lifecycle-status queries over CurrencyCode members.

public static class CurrencyCodeExtensions
Inheritance
CurrencyCodeExtensions
Inherited Members

Methods

GetStatus(CurrencyCode)

Gets the lifecycle status of the specified currency.

public static CurrencyStatus GetStatus(this CurrencyCode code)

Parameters

code CurrencyCode

The currency to classify.

Returns

CurrencyStatus

The CurrencyStatus declared for code, or None when the value is not a defined member.

IsActive(CurrencyCode)

Returns a value indicating whether the specified currency is an active currency.

public static bool IsActive(this CurrencyCode code)

Parameters

code CurrencyCode

The currency to test.

Returns

bool

true when code is active; otherwise false.

IsHistoric(CurrencyCode)

Returns a value indicating whether the specified currency is a historic (demonetized) currency.

public static bool IsHistoric(this CurrencyCode code)

Parameters

code CurrencyCode

The currency to test.

Returns

bool

true when code is historic; otherwise false.

Applies to

ProductVersions
.NET8, 10