In the Example1 of Serialization Example, we have seen that the Xml tag’s name
and property’s name of object of class Company are same. Now we want some
modification or difference. Let’s see how we do?
For this we have to add an attribute named XmlElement above the Property
field that sets the name.
Now we can see the difference after
execution of above piece of code.
No comments:
Post a Comment