EWSoftware / PDI

A Personal Data Interchange (PDI) library that implements the vCard (RFC 2426), vCalendar, and iCalendar (RFC 2445) specifications including recurrence pattern generation
Microsoft Public License
64 stars 26 forks source link

Add an Example for VCard Constructor (SerializationInfo, StreamingContext) #15

Closed manferpon closed 4 years ago

manferpon commented 4 years ago

Please add an example for VCard Constructor (SerializationInfo, StreamingContext).

TODO (optional): Describe a specific scenario you would like to see addressed.

Help Topic: https://ewsoftware.github.io/PDI/html/3ca6e208-8893-a998-78a0-288fef4cf1fa.htm

EWSoftware commented 4 years ago

There's really no meaningful use case that I can provide. Unless you're deriving a class from VCard, you probably don't even need to know about this or use it. If you are, just retrieve the values you want in the constructor and add the values you want in the GetObjectData override. I suggest looking at the ISerializable interface docs as that's really all this is and the example there tells you all you need to know.