/// <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; } }
/// <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); }
/// <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; }
public bool IsEqualTo(IActiveToPassivePinsState rhs) { return(Equals(rhs)); }
/// <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); }
/// <summary>Copy constructor</summary> public ActiveToPassivePinsState(IActiveToPassivePinsState rhs) : this() { SetFrom(rhs); }