Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Eiffel > XML Serializati...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 886 of 913
Post > Topic >>

XML Serialization i Eiffel.NET

by psyho <onethater@[EMAIL PROTECTED] > Sep 22, 2007 at 10:44 AM

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?




 1 Posts in Topic:
XML Serialization i Eiffel.NET
psyho <onethater@[EMAI  2007-09-22 10:44:03 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu May 15 0:53:19 CDT 2008.