Table of Contents

Class CalendarRecord

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

A named calendar on a base calendar with holidays added or removed (Calendar), as QuantLib's addHoliday and removeHoliday edit one: under the base's own name, the base's edits.

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

Remarks

The calendar is the base's, its name the base's name (two calendars are equal by type, name and edits), with the record's edits applied after the base's. A record of a preset's name based on that name edits the preset wherever it is built under the set.

Constructors

CalendarRecord(string, string)

Initializes a new instance of the CalendarRecord class.

public CalendarRecord(string name, string @base)

Parameters

name string

The calendar's name in the set.

base string

The calendar it edits: any calendar name, its own for the record below it.

Exceptions

ArgumentNullException

base is null.

Properties

AddedHolidays

Gets the dates added to the base's holidays.

public ImmutableArray<Date> AddedHolidays { get; init; }

Property Value

ImmutableArray<Date>

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

RemovedHolidays

Gets the dates removed from the base's holidays.

public ImmutableArray<Date> RemovedHolidays { get; init; }

Property Value

ImmutableArray<Date>

Methods

Equals(CalendarRecord?)

public bool Equals(CalendarRecord? other)

Parameters

other CalendarRecord

Returns

bool

Equals(ConventionRecord?)

public override sealed bool Equals(ConventionRecord? other)

Parameters

other ConventionRecord

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 ==(CalendarRecord?, CalendarRecord?)

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

Parameters

left CalendarRecord
right CalendarRecord

Returns

bool

operator !=(CalendarRecord?, CalendarRecord?)

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

Parameters

left CalendarRecord
right CalendarRecord

Returns

bool