public static GetConcreteSerializer ( SerializationContext context, PolymorphismSchema schema, |
||
context | SerializationContext | |
schema | PolymorphismSchema | |
abstractType | ||
targetType | ||
exampleType | ||
factory | ICollectionInstanceFactory | |
serializer | MessagePackSerializer | |
Результат | void |
public AbstractReadOnlyCollectionMessagePackSerializer( SerializationContext ownerContext, Type targetType, PolymorphismSchema schema ) : base(ownerContext, schema) { MessagePackSerializer serializer; AbstractCollectionSerializerHelper.GetConcreteSerializer( ownerContext, schema, typeof(TCollection), targetType, typeof(EnumerableMessagePackSerializerBase <,>), out this._concreteCollectionInstanceFactory, out serializer ); this._polymorphicDeserializer = serializer as IPolymorphicDeserializer; this._concreteDeserializer = serializer; }
public AbstractReadOnlyDictionaryMessagePackSerializer( SerializationContext ownerContext, Type targetType, PolymorphismSchema schema ) : base(ownerContext, schema) { IMessagePackSingleObjectSerializer serializer; AbstractCollectionSerializerHelper.GetConcreteSerializer( ownerContext, schema, typeof(TDictionary), targetType, typeof(DictionaryMessagePackSerializer <, ,>), out this._concreteCollectionInstanceFactory, out serializer ); this._polymorphicDeserializer = serializer as IPolymorphicDeserializer; this._concreteDeserializer = serializer; }