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