public ProtobufFormatter(MethodInfo classFactory = null) : this(TypeModel.Create()) { if (classFactory != null) { _runtime.SetDefaultFactory(classFactory); } }
public ProtobufCommonSerializer(MethodInfo classFactory = null) { _runtime = TypeModel.Create(); if (classFactory != null) { _runtime.SetDefaultFactory(classFactory); } RegisterSubtype <ISerializedContainer, ProtobufSerializedContainer>(1); }