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