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