Commit 09d03dfc authored by Gabriel Kliot's avatar Gabriel Kliot

Fixed a bug in CSharp SampleUsage.

parent 8162451b
......@@ -57,7 +57,11 @@ namespace Google.Protobuf.Examples.AddressBook
Person copy = Person.Parser.ParseFrom(bytes);
// A more streamlined approach might look like this:
bytes = copy.ToByteArray();
AddressBook book = new AddressBook
{
People = { copy }
};
bytes = book.ToByteArray();
// And read the address book back again
AddressBook restored = AddressBook.Parser.ParseFrom(bytes);
// The message performs a deep-comparison on equality:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment