Table of Contents

Class YearOnYearInflationSwapConventionRecord

Namespace
NanoQL.Extensions.Conventions
Assembly
NanoQL.Extensions.dll

A year-on-year inflation swap's conventions (YearOnYearInflationSwapConvention), which feed YearOnYearInflationSwapHelper.

public sealed record YearOnYearInflationSwapConventionRecord : ConventionRecord, IEquatable<ConventionRecord>, IEquatable<YearOnYearInflationSwapConventionRecord>
Inheritance
YearOnYearInflationSwapConventionRecord
Implements
Inherited Members

Constructors

YearOnYearInflationSwapConventionRecord(string, string?)

Initializes a new instance of the YearOnYearInflationSwapConventionRecord class.

public YearOnYearInflationSwapConventionRecord(string name, string? @base = null)

Parameters

name string

The record's name.

base string

The record it is based on, or null.

Properties

Calendar

Gets the calendar's name, or null to take the base's.

public string? Calendar { get; init; }

Property Value

string

DayCounter

Gets the day counter's name, or null to take the base's.

public string? DayCounter { get; init; }

Property Value

string

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Index

Gets the year-on-year inflation index's name, or null to take the base's.

public string? Index { get; init; }

Property Value

string

Interpolation

Gets how the index is observed, or null to take the base's.

public CPIInterpolationType? Interpolation { get; init; }

Property Value

CPIInterpolationType?

ObservationLag

Gets the observation lag, or null to take the base's.

public Period? ObservationLag { get; init; }

Property Value

Period?

PaymentConvention

Gets the payment convention, or null to take the base's.

public BusinessDayConvention? PaymentConvention { get; init; }

Property Value

BusinessDayConvention?

Methods

Equals(ConventionRecord?)

public override sealed bool Equals(ConventionRecord? other)

Parameters

other ConventionRecord

Returns

bool

Equals(YearOnYearInflationSwapConventionRecord?)

public bool Equals(YearOnYearInflationSwapConventionRecord? other)

Parameters

other YearOnYearInflationSwapConventionRecord

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(YearOnYearInflationSwapConventionRecord?, YearOnYearInflationSwapConventionRecord?)

public static bool operator ==(YearOnYearInflationSwapConventionRecord? left, YearOnYearInflationSwapConventionRecord? right)

Parameters

left YearOnYearInflationSwapConventionRecord
right YearOnYearInflationSwapConventionRecord

Returns

bool

operator !=(YearOnYearInflationSwapConventionRecord?, YearOnYearInflationSwapConventionRecord?)

public static bool operator !=(YearOnYearInflationSwapConventionRecord? left, YearOnYearInflationSwapConventionRecord? right)

Parameters

left YearOnYearInflationSwapConventionRecord
right YearOnYearInflationSwapConventionRecord

Returns

bool