Table of Contents

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

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

Convention

Gets the business-day convention, or null to take the base's.

public BusinessDayConvention? Convention { get; init; }

Property Value

BusinessDayConvention?

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

Type

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

Frequency?

Rule

Gets the date-generation rule, or null to take the base's.

public DateGenerationRule? Rule { get; init; }

Property Value

DateGenerationRule?

Tenor

Gets the schedule's tenor, or null to take the base's.

public Period? Tenor { get; init; }

Property Value

Period?

TerminationDateConvention

Gets the termination date's business-day convention, or null to take the base's.

public BusinessDayConvention? TerminationDateConvention { get; init; }

Property Value

BusinessDayConvention?

Methods

Equals(ConventionRecord?)

public override sealed bool Equals(ConventionRecord? other)

Parameters

other ConventionRecord

Returns

bool

Equals(ScheduleConventionRecord?)

public bool Equals(ScheduleConventionRecord? other)

Parameters

other ScheduleConventionRecord

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

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

Parameters

left ScheduleConventionRecord
right ScheduleConventionRecord

Returns

bool

operator !=(ScheduleConventionRecord?, ScheduleConventionRecord?)

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

Parameters

left ScheduleConventionRecord
right ScheduleConventionRecord

Returns

bool