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

WireData

#
Create new wire data.
public WireData(
source,
Source id.
target,
Target id.
sourceIndex,
Index of wire in source output array.
targetIndex
Index of wire in target input array.
)

WireData

#
public WireData(
reader
)

Properties

Source

#
Gets the source id.
public Guid Source { get; }

SourceIndex

#
Gets the index of this wire in the source output array.
public int SourceIndex { get; }

Target

#
Gets the target id.
public Guid Target { get; }

TargetIndex

#
Gets the index of this wire in the target input array.
public int TargetIndex { get; }

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.
public int CompareTo(
other
An object to compare with this instance.
)
A value that indicates the relative order of the objects being compared. The return value has these meanings:
ValueMeaning
Less than zeroThis instance precedes other in the sort order.
ZeroThis instance occurs in the same position in the sort order as other.
Greater than zeroThis instance follows other in the sort order.

Equals

#
Indicates whether this instance and a specified object are equal.
public override bool Equals(
obj
The object to compare with the current instance.
)
true if obj and this instance are the same type and represent the same value; otherwise, false.
ValueType.Equals

Equals

#
Indicates whether the current object is equal to another object of the same type.
public bool Equals(
other
An object to compare with this object.
)
true if the current object is equal to the other parameter; otherwise, false.

GetHashCode

#
Returns the hash code for this instance.
public override int GetHashCode()
A 32-bit signed integer that is the hash code for this instance.
Explicit

IStorable.Store

#
void IStorable.Store(
writer
)
Store

ToString

#
Returns the fully qualified type name of this instance.
public override string ToString()
The fully qualified type name.

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.
)
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.
public static bool TryCreate(
source,
Source parameter.
target,
Target parameter.
data
Data if a wire exists between the two parameters.
)
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.
)
True if both parameters were disconnected.