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

            default: throw new AvroRuntimeException("Bad index " + fieldPos + " in Put()");
            }
            ;
        }
        public virtual void Put(int fieldPos, object fieldValue)
        {
            switch (fieldPos)
            {
            case 0: this.IP = (System.String)fieldValue; break;

            case 1: this.Message = (System.String)fieldValue; break;

            case 2: this.Tags = (IDictionary <string, System.String>)fieldValue; break;

            case 3: this.Severity = (MessageTypes.LogLevel)fieldValue; break;

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