public IsRepresentationOf ( Wiring instance ) : bool | ||
instance | Wiring | |
return | bool |
// Select a given patch for later use. public void Select(Patch patch) { foreach (var instance in _instances) { instance._wiringSelected = patch.IsRepresentationOf(instance); } }
// Select a given patch for later use. public void Select(Patch patch) { foreach (var instance in _instances) instance._wiringSelected = patch.IsRepresentationOf(instance); }
// Determine the index of a given patch. public int GetIndexOf(Patch patch) { return(Array.FindIndex( _instances, i => patch.IsRepresentationOf(i) )); }
// Determine the index of a given patch. public int GetIndexOf(Patch patch) { return Array.FindIndex( _instances, i => patch.IsRepresentationOf(i) ); }