Exemplo n.º 1
0
        /// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="VendorId1">An charge box identification.</param>
        /// <param name="VendorId2">Another charge box identification.</param>
        /// <returns>true|false</returns>
        public static Boolean operator >(Vendor_Id VendorId1, Vendor_Id VendorId2)
        {
            if ((Object)VendorId1 == null)
            {
                throw new ArgumentNullException(nameof(VendorId1), "The given charge box identification must not be null!");
            }

            return(VendorId1.CompareTo(VendorId2) > 0);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="VendorId1">An charge box identification.</param>
        /// <param name="VendorId2">Another charge box identification.</param>
        /// <returns>true|false</returns>
        public static Boolean operator ==(Vendor_Id VendorId1, Vendor_Id VendorId2)
        {
            // If both are null, or both are same instance, return true.
            if (ReferenceEquals(VendorId1, VendorId2))
            {
                return(true);
            }

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

            if ((Object)VendorId1 == null)
            {
                throw new ArgumentNullException(nameof(VendorId1), "The given charge box identification must not be null!");
            }

            return(VendorId1.Equals(VendorId2));
        }