XML Serialization i Eiffel.NET

This is a discussion on XML Serialization i Eiffel.NET within the Eiffel forums in Programming Languages category; 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 ...

Go Back   Application Development Forum > Programming Languages > Eiffel

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 09-22-2007, 01:44 PM
psyho
Guest
 
Default XML Serialization i Eiffel.NET

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?

Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 06:43 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.