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