Class ScheduleConventionRecord
- Namespace
- NanoQL.Extensions.Conventions
- Assembly
- NanoQL.Extensions.dll
A schedule's conventions (ScheduleConvention), which feed MakeSchedule; the dates
are the trade's.
public sealed record ScheduleConventionRecord : ConventionRecord, IEquatable<ConventionRecord>, IEquatable<ScheduleConventionRecord>
- Inheritance
-
ScheduleConventionRecord
- Implements
- Inherited Members
Constructors
ScheduleConventionRecord(string, string?)
Initializes a new instance of the ScheduleConventionRecord class.
public ScheduleConventionRecord(string name, string? @base = null)
Parameters
Properties
Calendar
Gets the calendar's name, or null to take the base's.
public string? Calendar { get; init; }
Property Value
Convention
Gets the business-day convention, or null to take the base's.
public BusinessDayConvention? Convention { get; init; }
Property Value
EndOfMonth
Gets whether the dates stay at month end, or null to take the base's.
public bool? EndOfMonth { get; init; }
Property Value
- bool?
EqualityContract
protected override Type EqualityContract { get; }
Property Value
Frequency
Gets the schedule's frequency, in place of its tenor, or null to take the base's.
public Frequency? Frequency { get; init; }
Property Value
Rule
Gets the date-generation rule, or null to take the base's.
public DateGenerationRule? Rule { get; init; }
Property Value
Tenor
Gets the schedule's tenor, or null to take the base's.
public Period? Tenor { get; init; }
Property Value
TerminationDateConvention
Gets the termination date's business-day convention, or null to take the base's.
public BusinessDayConvention? TerminationDateConvention { get; init; }
Property Value
Methods
Equals(ConventionRecord?)
public override sealed bool Equals(ConventionRecord? other)
Parameters
otherConventionRecord
Returns
Equals(ScheduleConventionRecord?)
public bool Equals(ScheduleConventionRecord? other)
Parameters
otherScheduleConventionRecord
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 ==(ScheduleConventionRecord?, ScheduleConventionRecord?)
public static bool operator ==(ScheduleConventionRecord? left, ScheduleConventionRecord? right)
Parameters
leftScheduleConventionRecordrightScheduleConventionRecord
Returns
operator !=(ScheduleConventionRecord?, ScheduleConventionRecord?)
public static bool operator !=(ScheduleConventionRecord? left, ScheduleConventionRecord? right)
Parameters
leftScheduleConventionRecordrightScheduleConventionRecord