Table of Contents

NamedDatedRateProvider Struct

Definition

Namespace
Bodu.Financial.ExchangeRates.Caching
Assembly
Bodu.Financial.ExchangeRates.Caching.dll
Package
Bodu.Financial.ExchangeRates.Caching 1.0.0
Source
NamedDatedRateProvider.cs

Pairs an IDatedRateProvider with the name it is referenced by inside an AggregatingRateProvider.

public readonly struct NamedDatedRateProvider : IEquatable<NamedDatedRateProvider>
Implements
Inherited Members
Extension Methods

Constructors

NamedDatedRateProvider(string, IDatedRateProvider)

Pairs an IDatedRateProvider with the name it is referenced by inside an AggregatingRateProvider.

public NamedDatedRateProvider(string Name, IDatedRateProvider Provider)

Parameters

Name string

The name the provider is referenced by in routing and diagnostics.

Provider IDatedRateProvider

The wrapped dated provider.

Properties

Name

The name the provider is referenced by in routing and diagnostics.

public string Name { get; init; }

Property Value

string

Provider

The wrapped dated provider.

public IDatedRateProvider Provider { get; init; }

Property Value

IDatedRateProvider

Methods

Deconstruct(out string, out IDatedRateProvider)

public void Deconstruct(out string Name, out IDatedRateProvider Provider)

Parameters

Name string
Provider IDatedRateProvider

Equals(NamedDatedRateProvider)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(NamedDatedRateProvider other)

Parameters

other NamedDatedRateProvider

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.

Operators

operator ==(NamedDatedRateProvider, NamedDatedRateProvider)

public static bool operator ==(NamedDatedRateProvider left, NamedDatedRateProvider right)

Parameters

left NamedDatedRateProvider
right NamedDatedRateProvider

Returns

bool

operator !=(NamedDatedRateProvider, NamedDatedRateProvider)

public static bool operator !=(NamedDatedRateProvider left, NamedDatedRateProvider right)

Parameters

left NamedDatedRateProvider
right NamedDatedRateProvider

Returns

bool

Applies to

ProductVersions
.NET8, 10