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