Ejemplo n.º 1
0
        /// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="EVSEOperator_Id1">A EVSEOperator_Id.</param>
        /// <param name="EVSEOperator_Id2">Another EVSEOperator_Id.</param>
        /// <returns>true|false</returns>
        public static Boolean operator >(EVSEOperator_Id EVSEOperator_Id1, EVSEOperator_Id EVSEOperator_Id2)
        {
            if ((Object)EVSEOperator_Id1 == null)
            {
                throw new ArgumentNullException("The given EVSEOperator_Id1 must not be null!");
            }

            return(EVSEOperator_Id1.CompareTo(EVSEOperator_Id2) > 0);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="EVSEOperator_Id1">A EVSEOperator_Id.</param>
        /// <param name="EVSEOperator_Id2">Another EVSEOperator_Id.</param>
        /// <returns>true|false</returns>
        public static Boolean operator ==(EVSEOperator_Id EVSEOperator_Id1, EVSEOperator_Id EVSEOperator_Id2)
        {
            // If both are null, or both are same instance, return true.
            if (Object.ReferenceEquals(EVSEOperator_Id1, EVSEOperator_Id2))
            {
                return(true);
            }

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

            return(EVSEOperator_Id1.Equals(EVSEOperator_Id2));
        }