WireData
References[IoId("00000000-3adc-4a53-917a-f6aa95c83138")]
public struct WireData : IEquatable<WireData>, IComparable<WireData>, IStorable
Represents the instance ids of the parameters at either end of a wire, as well as the indices within the respective input and output arrays.
Constructors
Properties
Methods
CompareTo
#Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Returns: A value that indicates the relative order of the objects being compared. The return value has these meanings:
| Value | Meaning |
|---|---|
| Less than zero | This instance precedes other in the sort order. |
| Zero | This instance occurs in the same position in the sort order as other. |
| Greater than zero | This instance follows other in the sort order. |
Equals
#Indicates whether this instance and a specified object are equal.
Returns:
true if obj and this instance are the same type and represent the same value; otherwise, false.Overrides: ValueType.Equals
Equals
#Indicates whether the current object is equal to another object of the same type.
Returns:
true if the current object is equal to the other parameter; otherwise, false.GetHashCode
#Returns the hash code for this instance.
Returns: A 32-bit signed integer that is the hash code for this instance.
Overrides: ValueType.GetHashCode
ToString
#Returns the fully qualified type name of this instance.
Returns: The fully qualified type name.
Overrides: ValueType.ToString
TryConnect
#Try and create the wire between the specified parameters.
public bool TryConnect()
document,
Document which is supposed to contain the parameters.
undo = null
Undo action list to populate.
Returns: True if both parameters were connected.
TryCreate
#Attempt to create wire data from two parameters. This method does not validate whether both parameters belong to the same document, or indeed any document.
Returns: True on success, false on failure.
TryDisconnect
#Try and remove the wire between the specified parameters. If the connection exists but it at different indices, it will still be removed.
public bool TryDisconnect()
document,
Document which is supposed to contain the parameters.
undo = null
Undo action list to populate.
Returns: True if both parameters were disconnected.