/// <summary> /// Compares two instances of this object. /// </summary> /// <param name="AAuthentication1">A AAuthentication.</param> /// <param name="AAuthentication2">Another AAuthentication.</param> /// <returns>true|false</returns> public static Boolean operator >(AAuthentication AAuthentication1, AAuthentication AAuthentication2) { if ((Object)AAuthentication1 == null) { throw new ArgumentNullException("The given AAuthentication1 must not be null!"); } return(AAuthentication1.CompareTo(AAuthentication2) > 0); }
/// <summary> /// Compares two instances of this object. /// </summary> /// <param name="AAuthentication1">A AAuthentication.</param> /// <param name="AAuthentication2">Another AAuthentication.</param> /// <returns>true|false</returns> public static Boolean operator ==(AAuthentication AAuthentication1, AAuthentication AAuthentication2) { // If both are null, or both are same instance, return true. if (Object.ReferenceEquals(AAuthentication1, AAuthentication2)) { return(true); } // If one is null, but not both, return false. if (((Object)AAuthentication1 == null) || ((Object)AAuthentication2 == null)) { return(false); } return(AAuthentication1.Equals(AAuthentication2)); }