pizheng / protobuf-net

Automatically exported from code.google.com/p/protobuf-net
Other
0 stars 0 forks source link

iOS version does not contain Deserialize definition #201

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Please include an e-mail address if this might need a dialogue!
==============

What steps will reproduce the problem?
1. Download revision 423 (v2 beta 4)
2. Use the iOS version of the library
3. Serialize and Deserialize the data as done with the getting started tutorial 
at http://code.google.com/p/protobuf-net/wiki/GettingStarted
4. The following error will occur: 'ProtoBuf.Serializer' does not contain a 
definition for 'Deserialize'

What is the expected output? What do you see instead?
No errors should occur. I used to Mono version of revision 423 and everything 
worked perfectly.

Original issue reported on code.google.com by ops...@gmail.com on 6 Jul 2011 at 3:45

GoogleCodeExporter commented 9 years ago
Does it have a Serialize?

The preferred usage on iOS is to pre-generate the compiled serializers:
http://www.frictionpointstudios.com/blog/2011/3/31/using-protobuf-net-serializat
ion-in-unity-iphone.html

Original comment by marc.gravell on 6 Jul 2011 at 5:31

GoogleCodeExporter commented 9 years ago
Ah, ok, that makes sense. Thanks for the clarification.  It doesn't have a 
Serialize, I guess my compiler was only outputting the first error.

Original comment by ops...@gmail.com on 8 Jul 2011 at 2:44

GoogleCodeExporter commented 9 years ago

Original comment by marc.gravell on 8 Jul 2011 at 8:55