示例#1
0
        public ConsultSensor(string name, byte[] reg, SensorConvertFunc func)
        {
            if (func == null)
                throw new NullReferenceException("func");

            this._name = name;
            this._registers = reg;
            this.ConvFunc = func;
        }
示例#2
0
        public ConsultSensor(string name, byte[] reg, SensorConvertFunc func)
        {
            if (func == null)
            {
                throw new NullReferenceException("func");
            }

            this._name      = name;
            this._registers = reg;
            this.ConvFunc   = func;
        }