示例#1
0
        public virtual void Put(int fieldPos, object fieldValue)
        {
            switch (fieldPos)
            {
            case 0: this._attributeId = (System.Int32)fieldValue; break;

            case 1: this._attributeValue = (Energistics.Etp.v11.Datatypes.DataValue)fieldValue; break;

            default: throw new AvroRuntimeException("Bad index " + fieldPos + " in Put()");
            }
            ;
        }
示例#2
0
        public virtual void Put(int fieldPos, object fieldValue)
        {
            switch (fieldPos)
            {
            case 0: this._indexes = (IList <System.Int64>)fieldValue; break;

            case 1: this._channelId = (System.Int64)fieldValue; break;

            case 2: this._value = (Energistics.Etp.v11.Datatypes.DataValue)fieldValue; break;

            case 3: this._valueAttributes = (IList <Energistics.Etp.v11.Datatypes.DataAttribute>)fieldValue; break;

            default: throw new AvroRuntimeException("Bad index " + fieldPos + " in Put()");
            }
            ;
        }