SubItemToken.cs 460 B

12345678910111213141516
  1. 
  2. using System;
  3. namespace ProtoBuf
  4. {
  5. /// <summary>
  6. /// Used to hold particulars relating to nested objects. This is opaque to the caller - simply
  7. /// give back the token you are given at the end of an object.
  8. /// </summary>
  9. public readonly struct SubItemToken
  10. {
  11. internal readonly long value64;
  12. internal SubItemToken(int value) => value64 = value;
  13. internal SubItemToken(long value) => value64 = value;
  14. }
  15. }