private void EnsureTypeCanSerialize <T>() { if (!_model.CanSerialize(typeof(T))) { ReflectionRuntimeTypeModel.AddType <T>(_model); } }
public ProtocolBuffersSerializer() { _model = ReflectionRuntimeTypeModel.Create(); _owner = true; }