コード例 #1
0
 /// <summary>Helper method for use in copy constructors</summary>
 private void SetFrom(IActiveToPassivePinsState rhs)
 {
     if (rhs != null)
     {
         IFaceName  = rhs.IFaceName;
         PackedWord = rhs.PackedWord;
     }
     else
     {
         IFaceName  = "SetFromNull";
         PackedWord = ActiveToPassivePinBits.NoActivePins;
     }
 }
コード例 #2
0
ファイル: E084.cs プロジェクト: mosaicsys/MosaicLibCS
 /// <summary>
 /// Returns true if the given pair of objects have the identical contents
 /// </summary>
 public bool IsEqualTo(IActiveToPassivePinsState rhs)
 {
     return (rhs != null && IFaceName == rhs.IFaceName && PackedWord == rhs.PackedWord);
 }
コード例 #3
0
ファイル: E084.cs プロジェクト: mosaicsys/MosaicLibCS
 /// <summary>Copy constructor</summary>
 /// <param name="rhs">Defines the instance that this is constructed as a copy of.</param>
 public ActiveToPassivePinsState(IActiveToPassivePinsState rhs) 
     : this() 
 { 
     IFaceName = rhs.IFaceName; 
     PackedWord = rhs.PackedWord; 
 }
コード例 #4
0
 public bool IsEqualTo(IActiveToPassivePinsState rhs)
 {
     return(Equals(rhs));
 }
コード例 #5
0
 /// <summary>
 /// Returns true if this object has the same contents as the given other
 /// </summary>
 public bool Equals(IActiveToPassivePinsState other)
 {
     return(other != null && IFaceName == other.IFaceName && PackedWord == other.PackedWord);
 }
コード例 #6
0
 /// <summary>Copy constructor</summary>
 public ActiveToPassivePinsState(IActiveToPassivePinsState rhs)
     : this()
 {
     SetFrom(rhs);
 }