Пример #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;
        }