/// <summary>Constructor and Copy constructor helper function</summary> public DelayTimers SetFrom(DelayTimers rhs) { if (rhs != null) { TD0 = rhs.TD0; TD1 = rhs.TD1; } else { TD0 = DefaultTD0Value; TD1 = DefaultTD1Value; } return(this); }
/// <summary>Copy constructor</summary> /// <param name="rhs">Defines the instance that this is constructed as a copy of.</param> public DelayTimers(DelayTimers rhs) { TD0 = rhs.TD0; TD1 = rhs.TD1; }
/// <summary> /// Compares this object against the rhs to determine if they are both of the same type and, if so, if they have the same contents. /// </summary> /// <param name="rhsAsObject">defines the object against which this one will be compared.</param> /// <returns>true if both objects contain the same values, false if rhsAsObject is null, is not of this type or has different contents</returns> public override bool Equals(object rhsAsObject) { DelayTimers rhs = rhsAsObject as DelayTimers; return(rhs != null && rhs.TD0 == TD0 && rhs.TD1 == TD1); }
/// <summary>Copy constructor</summary> public DelayTimers(DelayTimers rhs) { SetFrom(rhs); }