示例#1
0
        /// <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);
        }
示例#2
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);
        }
示例#3
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.CompareTo(ConnectorId2) > 0;