public void WriteDebugSchema(IDebugSchemaBuilder builder) { if (_map == null) { builder.SingleValueSerializer(this); } else { using (builder.GroupSerializer(this)) { for (int i = 0; i < _map.Length; i++) { #if FEAT_IKVM string name = _map[i].RawValue.ToString(); #else string name = _map[i].TypedValue.ToString(); #endif using (builder.Field(_map[i].WireValue, name)) { } } } } }
public void WriteDebugSchema(IDebugSchemaBuilder builder) { using (builder.GroupSerializer(this)) { for (int i = 0; i < _tails.Length; i++) { using (builder.Field(i + 1, "Field")) _tails[i].WriteDebugSchema(builder); } } }
public void WriteDebugSchema(IDebugSchemaBuilder builder) { using (builder.GroupSerializer(this)) { for (int i = 0; i < _serializers.Length; i++) { IProtoSerializerWithWireType ser = _serializers[i]; if (ser.ExpectedType != ExpectedType) { using (builder.Field(_fieldNumbers[i], "SubType")) ser.WriteDebugSchema(builder); } } for (int i = 0; i < _serializers.Length; i++) { IProtoSerializerWithWireType ser = _serializers[i]; if (ser.ExpectedType == ExpectedType) { using (builder.Field(_fieldNumbers[i])) ser.WriteDebugSchema(builder); } } } }
public void WriteDebugSchema(IDebugSchemaBuilder builder) { using (builder.Field(_number)) _serializer.WriteDebugSchema(builder); }