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