IsRepresentationOf() public method

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