A MIDI Library for .NET

InstrumentExtensionMethods.Validate Method

Throws an exception if instrument is not valid.

[Extension]
public static void Validate(
   this Instrument instrument
);

Parameters

instrument
The instrument to validate.

Exceptions

Exception Type Condition
ArgumentOutOfRangeException The instrument is out-of-range.

See Also

InstrumentExtensionMethods Class | Midi Namespace