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
namestringThe calendar's name in the set.
basestringThe calendar it edits: any calendar name, its own for the record below it.
Exceptions
- ArgumentNullException
baseis null.
Properties
AddedHolidays
Gets the dates added to the base's holidays.
public ImmutableArray<Date> AddedHolidays { get; init; }
Property Value
EqualityContract
protected override Type EqualityContract { get; }
Property Value
RemovedHolidays
Gets the dates removed from the base's holidays.
public ImmutableArray<Date> RemovedHolidays { get; init; }
Property Value
Methods
Equals(CalendarRecord?)
public bool Equals(CalendarRecord? other)
Parameters
otherCalendarRecord
Returns
Equals(ConventionRecord?)
public override sealed bool Equals(ConventionRecord? other)
Parameters
otherConventionRecord
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(CalendarRecord?, CalendarRecord?)
public static bool operator ==(CalendarRecord? left, CalendarRecord? right)
Parameters
leftCalendarRecordrightCalendarRecord
Returns
operator !=(CalendarRecord?, CalendarRecord?)
public static bool operator !=(CalendarRecord? left, CalendarRecord? right)
Parameters
leftCalendarRecordrightCalendarRecord