Esempio n. 1
0
 /// <summary>Helper method for use in copy constructors</summary>
 private void SetFrom(IPassiveToActivePinsState rhs)
 {
     if (rhs != null)
     {
         IFaceName  = rhs.IFaceName;
         PackedWord = rhs.PackedWord;
     }
     else
     {
         IFaceName  = "SetFromNull";
         PackedWord = PassiveToActivePinBits.NoActivePins;
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Returns true if the given pair of objects have the identical contents
 /// </summary>
 public bool IsEqualTo(IPassiveToActivePinsState rhs)
 {
     return (rhs != null && IFaceName == rhs.IFaceName && PackedWord == rhs.PackedWord);
 }
Esempio n. 3
0
 /// <summary>Copy constructor</summary>
 /// <param name="rhs">Defines the instance that this is constructed as a copy of.</param>
 public PassiveToActivePinsState(IPassiveToActivePinsState rhs) 
     : this() 
 { 
     IFaceName = rhs.IFaceName; 
     PackedWord = rhs.PackedWord; 
 }
Esempio n. 4
0
 public bool IsEqualTo(IPassiveToActivePinsState rhs)
 {
     return(Equals(rhs));
 }
Esempio n. 5
0
 /// <summary>
 /// Returns true if this object has the same contents as the given other
 /// </summary>
 public bool Equals(IPassiveToActivePinsState other)
 {
     return(other != null && IFaceName == other.IFaceName && PackedWord == other.PackedWord);
 }
Esempio n. 6
0
 /// <summary>Copy constructor</summary>
 public PassiveToActivePinsState(IPassiveToActivePinsState rhs)
     : this()
 {
     SetFrom(rhs);
 }