Ejemplo n.º 1
0
        /// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="ChargingPoolAdminStatus1">A charging pool admin status.</param>
        /// <param name="ChargingPoolAdminStatus2">Another charging pool admin status.</param>
        /// <returns>true|false</returns>
        public static Boolean operator ==(ChargingPoolAdminStatus ChargingPoolAdminStatus1, ChargingPoolAdminStatus ChargingPoolAdminStatus2)
        {
            // If both are null, or both are same instance, return true.
            if (Object.ReferenceEquals(ChargingPoolAdminStatus1, ChargingPoolAdminStatus2))
            {
                return(true);
            }

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

            return(ChargingPoolAdminStatus1.Equals(ChargingPoolAdminStatus2));
        }