/// <summary> /// Compares two instances of this object. /// </summary> /// <param name="LastConnected1">A LastConnected object identification.</param> /// <param name="LastConnected2">Another LastConnected object identification.</param> /// <returns>true|false</returns> public static Boolean operator ==(Last_Connected LastConnected1, Last_Connected LastConnected2) { // If both are null, or both are same instance, return true. if (Object.ReferenceEquals(LastConnected1, LastConnected2)) { return(true); } // If one is null, but not both, return false. if (((Object)LastConnected1 == null) || ((Object)LastConnected2 == null)) { return(false); } return(LastConnected1.Equals(LastConnected2)); }
/// <summary> /// Compares two instances of this object. /// </summary> /// <param name="LastConnected1">A LastConnected object identification.</param> /// <param name="LastConnected2">Another LastConnected object identification.</param> /// <returns>true|false</returns> public static Boolean operator >(Last_Connected LastConnected1, Last_Connected LastConnected2) => LastConnected1.CompareTo(LastConnected2) > 0;