Ejemplo n.º 1
0
        public bool Equals(NetworkInterfaceToMonitor other)
        {
            if (other == null)
            {
                return(false);
            }

            return(this.GetHashCode() == other.GetHashCode());
        }
Ejemplo n.º 2
0
        public override bool Equals(object obj)
        {
            if (obj == null || GetType() != obj.GetType())
            {
                return(false);
            }

            NetworkInterfaceToMonitor other = obj as NetworkInterfaceToMonitor;

            return(this.Equals(other));
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Copies the object.
        /// </summary>
        /// <returns></returns>
        public NetworkInterfaceToMonitor Copy()
        {
            NetworkInterfaceToMonitor nic = new NetworkInterfaceToMonitor();

            nic.EnableCheckNetworkLoadDownload = this.EnableCheckNetworkLoadDownload;
            nic.EnableCheckNetworkLoadUpload   = this.EnableCheckNetworkLoadUpload;
            nic.EnableCheckNetworkLoadTotal    = this.EnableCheckNetworkLoadTotal;
            nic.NetworkInterface    = this.NetworkInterface;
            nic.NetworkLoadDownload = this.NetworkLoadDownload;
            nic.NetworkLoadUpload   = this.NetworkLoadUpload;
            nic.NetworkLoadTotal    = this.NetworkLoadTotal;
            return(nic);
        }