tags:

views:

46

answers:

1

Is there a preferred method for serializing Guids in protobuf-net? It doesn't seem to be a supported type?

A: 

Apologies for the delay - holiday etc. In protobuf-net, Guid should work fine - it is treated pretty much as a byte[]. To confirm: do you mean protobuf-net (a specific implementation)? Or just protobuf generally (where it isn't a core type).

Marc Gravell
Yes, I was meaning the specific protobuf-net implementation. My apologies, my problems must have been "user error". I tried serializing a Guid in sandboxed tests this morning and was able to successfully serialize Guid and Guid? with the current versions I have of V1 and V2. I'm more stumped now, but I am definitely able to serialize Guids as Guids. Thank you!
Steve