Table of Contents

Class StandardInstrument

Namespace
ChartTools
Assembly
ChartTools.dll
public record StandardInstrument : Instrument<StandardChord>, IEmptyVerifiable, IEquatable<Instrument>, IEquatable<Instrument<StandardChord>>, IEquatable<StandardInstrument>
Inheritance
StandardInstrument
Implements
Inherited Members
Extension Methods

Constructors

StandardInstrument()

public StandardInstrument()

StandardInstrument(StandardInstrument)

protected StandardInstrument(StandardInstrument original)

Parameters

original StandardInstrument

StandardInstrument(StandardInstrumentIdentity)

public StandardInstrument(StandardInstrumentIdentity identity)

Parameters

identity StandardInstrumentIdentity

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

InstrumentIdentity

public StandardInstrumentIdentity InstrumentIdentity { get; init; }

Property Value

StandardInstrumentIdentity

MidiOrigin

Format of lead guitar and bass. Not applicable to other instruments.

public MidiInstrumentOrigin MidiOrigin { get; set; }

Property Value

MidiInstrumentOrigin

Methods

Equals(Instrument<StandardChord>?)

public override sealed bool Equals(Instrument<StandardChord>? other)

Parameters

other Instrument<StandardChord>

Returns

bool

Equals(StandardInstrument?)

public virtual bool Equals(StandardInstrument? other)

Parameters

other StandardInstrument

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

GetIdentity()

protected override InstrumentIdentity GetIdentity()

Returns

InstrumentIdentity

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(StandardInstrument?, StandardInstrument?)

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

Parameters

left StandardInstrument
right StandardInstrument

Returns

bool

operator !=(StandardInstrument?, StandardInstrument?)

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

Parameters

left StandardInstrument
right StandardInstrument

Returns

bool