IProtoInputT.cs 398 B

12345678910111213
  1. namespace ProtoBuf
  2. {
  3. /// <summary>
  4. /// Represents the ability to deserialize values from an input of type <typeparamref name="TInput"/>
  5. /// </summary>
  6. public interface IProtoInput<TInput>
  7. {
  8. /// <summary>
  9. /// Deserialize a value from the input
  10. /// </summary>
  11. T Deserialize<T>(TInput source, T value = default, object userState = null);
  12. }
  13. }