示例#1
0
        /// <summary>Constructor and Copy constructor helper function</summary>
        public ActiveTimers SetFrom(ActiveTimers rhs)
        {
            if (rhs != null)
            {
                TA1 = rhs.TA1;
                TA2 = rhs.TA2;
                TA3 = rhs.TA3;
            }
            else
            {
                TA1 = DefaultHandshakeTimerValue;
                TA2 = DefaultHandshakeTimerValue;
                TA3 = DefaultHandshakeTimerValue;
            }

            return(this);
        }
示例#2
0
 /// <summary>Copy constructor</summary>
 /// <param name="rhs">Defines the instance that this is constructed as a copy of.</param>
 public ActiveTimers(ActiveTimers rhs) 
 { 
     TA1 = rhs.TA1; 
     TA2 = rhs.TA2; 
     TA3 = rhs.TA3; 
 }
示例#3
0
        /// <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)
        {
            ActiveTimers rhs = rhsAsObject as ActiveTimers;

            return(rhs != null && rhs.TA1 == TA1 && rhs.TA2 == TA2 && TA3 == rhs.TA3);
        }
示例#4
0
 /// <summary>Copy constructor</summary>
 public ActiveTimers(ActiveTimers rhs)
 {
     SetFrom(rhs);
 }