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