Пример #1
0
        public virtual void Put(int fieldPos, object fieldValue)
        {
            switch (fieldPos)
            {
            case 0: this._sourceUri = (System.String)fieldValue; break;

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

            case 2: this._relationshipKind = (Energistics.Etp.v12.Datatypes.Object.RelationshipKind)fieldValue; break;

            case 3: this._customData = (IDictionary <string, Energistics.Etp.v12.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._uri = (System.String)fieldValue; break;

            case 1: this._depth = (System.Int32)fieldValue; break;

            case 2: this._dataObjectTypes = (IList <System.String>)fieldValue; break;

            case 3: this._navigableEdges = (Energistics.Etp.v12.Datatypes.Object.RelationshipKind)fieldValue; break;

            case 4: this._includeSecondaryTargets = (System.Boolean)fieldValue; break;

            case 5: this._includeSecondarySources = (System.Boolean)fieldValue; break;

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