| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| Hi, I'm wandering if I can .NET XML Serialization features in Eiffel? In C# I would write something like this: using System.xml.serialization; public class Employee { private string firstName = ""; private string secondName = ""; [XmlAttribute] public FirstName { get { return firstName; } set { firstName = value; } } [XmlAttribute] public SecondName { get { return secondName; } set { secondName = value; } } } And the class would serialize nicely to something like this: <Employee FirstName="" SecondName="" /> How would I go about that in Eiffel? How does one use custom attributes in Eiffel? How should my classes features look if I want them to be properly serializable and deserializable by XmlSerializer? |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.