Class ChangedTimedObject
Holds information about an object that has been changed within IObservableTimedObjectsCollection.
Inherited Members
Namespace: Melanchall.DryWetMidi.Interaction
Assembly: Melanchall.DryWetMidi.dll
Syntax
public sealed class ChangedTimedObject
Constructors
ChangedTimedObject(ITimedObject, long)
Initializes a new instance of the ChangedTimedObject with the specified object and
its time before changing.
Declaration
public ChangedTimedObject(ITimedObject timedObject, long oldTime)
Parameters
| Type | Name | Description |
|---|---|---|
| ITimedObject | timedObject | The object that has been changed. |
| long | oldTime | The time (in ticks) of the timedObject before changing. |
Properties
Object
Gets the changed object.
Declaration
public ITimedObject Object { get; }
Property Value
| Type | Description |
|---|---|
| ITimedObject |
OldTime
Gets the time (in ticks) of the Object before changing.
Declaration
public long OldTime { get; }
Property Value
| Type | Description |
|---|---|
| long |
Methods
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()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for the current object. |
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. |