Exemplo n.º 1
0
        /// <summary>
        /// Compares two virtual EVSEs for equality.
        /// </summary>
        /// <param name="RemoteEVSE">A virtual EVSE to compare with.</param>
        /// <returns>True if both match; False otherwise.</returns>
        public Boolean Equals(NetworkEVSEStub RemoteEVSE)
        {
            if ((Object)RemoteEVSE == null)
            {
                return(false);
            }

            return(Id.Equals(RemoteEVSE.Id));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="RemoteEVSE">An virtual EVSE to compare with.</param>
        public Int32 CompareTo(NetworkEVSEStub RemoteEVSE)
        {
            if ((Object)RemoteEVSE == null)
            {
                throw new ArgumentNullException(nameof(RemoteEVSE), "The given virtual EVSE must not be null!");
            }

            return(Id.CompareTo(RemoteEVSE.Id));
        }