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