Class Track<TChord>
- Namespace
- ChartTools
- Assembly
- ChartTools.dll
Set of chords for a instrument at a certain difficulty
public record Track<TChord> : Track, IEmptyVerifiable, IEquatable<Track>, IEquatable<Track<TChord>> where TChord : Chord
Type Parameters
TChord
- Inheritance
-
Track<TChord>
- Implements
-
IEquatable<Track<TChord>>
- Inherited Members
- Extension Methods
Constructors
Track()
public Track()
Track(Track<TChord>)
protected Track(Track<TChord> original)
Parameters
originalTrack<TChord>
Properties
Chords
Chords making up the difficulty track.
public override List<TChord> Chords { get; }
Property Value
- List<TChord>
EqualityContract
protected override Type EqualityContract { get; }
Property Value
ParentInstrument
Instrument the track is held in.
public Instrument<TChord>? ParentInstrument { get; init; }
Property Value
- Instrument<TChord>
Methods
Equals(Track?)
public override sealed bool Equals(Track? other)
Parameters
otherTrack
Returns
Equals(Track<TChord>?)
public virtual bool Equals(Track<TChord>? other)
Parameters
otherTrack<TChord>
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
GetInstrument()
Gets the parent instrument as an instance of the base type.
protected override Instrument? GetInstrument()
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(Track<TChord>?, Track<TChord>?)
public static bool operator ==(Track<TChord>? left, Track<TChord>? right)
Parameters
Returns
operator !=(Track<TChord>?, Track<TChord>?)
public static bool operator !=(Track<TChord>? left, Track<TChord>? right)