Class ValueChange<TValue>
Represents a change of a parameter's value at some time.
Inheritance
ValueChange<TValue>
Assembly: Melanchall.DryWetMidi.dll
Syntax
public sealed class ValueChange<TValue> : ITimedObject
Type Parameters
Name |
Description |
TValue |
Type of value. |
Properties
Time
Gets the MIDI time when value is changed.
Declaration
public long Time { get; set; }
Property Value
Exceptions
Value
Gets the new value that will last until next value change.
Declaration
public TValue Value { get; }
Property Value
Methods
Clone()
Clones object by creating a copy of it.
Declaration
public ITimedObject Clone()
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
The object to compare with the current object. |
Returns
Type |
Description |
bool |
true if the specified object is equal to the current object; otherwise, false . |
Overrides
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type |
Description |
int |
A 32-bit signed integer hash code. |
Overrides
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type |
Description |
string |
A string that represents the current object. |
Overrides
Operators
operator ==(ValueChange<TValue>, ValueChange<TValue>)
Declaration
public static bool operator ==(ValueChange<TValue> change1, ValueChange<TValue> change2)
Parameters
Returns
Type |
Description |
bool |
true if the value changes are equal, false otherwise. |
operator !=(ValueChange<TValue>, ValueChange<TValue>)
Declaration
public static bool operator !=(ValueChange<TValue> change1, ValueChange<TValue> change2)
Parameters
Returns
Type |
Description |
bool |
false if the value changes are equal, true otherwise. |
Implements
Extension Methods