示例#1
0
        /// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="LocationId1">A LocationId.</param>
        /// <param name="LocationId2">Another LocationId.</param>
        /// <returns>true|false</returns>
        public static Boolean operator >(Location_Id LocationId1, Location_Id LocationId2)
        {
            if ((Object)LocationId1 == null)
            {
                throw new ArgumentNullException("The given LocationId1 must not be null!");
            }

            return(LocationId1.CompareTo(LocationId2) > 0);
        }
示例#2
0
        /// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="LocationId1">A LocationId.</param>
        /// <param name="LocationId2">Another LocationId.</param>
        /// <returns>true|false</returns>
        public static Boolean operator ==(Location_Id LocationId1, Location_Id LocationId2)
        {
            // If both are null, or both are same instance, return true.
            if (Object.ReferenceEquals(LocationId1, LocationId2))
            {
                return(true);
            }

            // If one is null, but not both, return false.
            if (((Object)LocationId1 == null) || ((Object)LocationId2 == null))
            {
                return(false);
            }

            return(LocationId1.Equals(LocationId2));
        }
示例#3
0
        /// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="LocationId1">A country code identification.</param>
        /// <param name="LocationId2">Another country code identification.</param>
        /// <returns>true|false</returns>
        public static Boolean operator >(CountryCode LocationId1,
                                         CountryCode LocationId2)

        => LocationId1.CompareTo(LocationId2) > 0;
示例#4
0
        /// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="LocationId1">A country code identification.</param>
        /// <param name="LocationId2">Another country code identification.</param>
        /// <returns>true|false</returns>
        public static Boolean operator ==(CountryCode LocationId1,
                                          CountryCode LocationId2)

        => LocationId1.Equals(LocationId2);
示例#5
0
        /// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="LocationId1">A charging location identification.</param>
        /// <param name="LocationId2">Another charging location identification.</param>
        /// <returns>true|false</returns>
        public static Boolean operator >(Location_Id LocationId1,
                                         Location_Id LocationId2)

        => LocationId1.CompareTo(LocationId2) > 0;
示例#6
0
        /// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="LocationId1">A charging location identification.</param>
        /// <param name="LocationId2">Another charging location identification.</param>
        /// <returns>true|false</returns>
        public static Boolean operator ==(Location_Id LocationId1,
                                          Location_Id LocationId2)

        => LocationId1.Equals(LocationId2);