Exemple #1
0
        public override int GetHashCode()
        {
            const int prime  = 31;
            int       result = 1;

            result = prime * result + (_isLearn ? 1231 : 1237);
            result = prime * result + ((_name == null) ? 0 : _name.GetHashCode());
            result = prime * result + ((_parameters == null) ? 0 : _parameters.GetHashCode());
            result = prime * result + ((_regions == null) ? 0 : _regions.GetHashCode());
            result = prime * result + ((_sensor == null) ? 0 : _sensor.GetHashCode());
            return(result);
        }
Exemple #2
0
 public override int GetHashCode()
 {
     return(sensor.GetHashCode());
 }