Пример #1
0
 private void EnsureTypeCanSerialize <T>()
 {
     if (!_model.CanSerialize(typeof(T)))
     {
         ReflectionRuntimeTypeModel.AddType <T>(_model);
     }
 }
Пример #2
0
 public Serializer()
 {
     _model = ReflectionRuntimeTypeModel.Create();
     _owner = true;
 }