|
using System;
using System.Xml.Serialization;
namespace XmlSerializationConfig
{
/// <summary>
/// Example class we'll place into the
/// configuration file for reading.
/// </summary>
[XmlRoot("Person")]
public class Person
{
string __firstName = String.Empty;
string __lastName = String.Empty;
public Person()
{
}
[XmlAttribute(DataType = "string", AttributeName = "Firstname")]
public string Firstname
{
get { return __firstName; }
set { __firstName = value; }
}
[XmlAttribute(DataType = "string", AttributeName = "Lastname")]
public string Lastname
{
get { return __lastName; }
set { __lastName = value; }
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
hmm.. stream of consciousness okay? i write, i teach, i code, i consult, live in charlotte, nc, have a blog at www.tatochip.com, have a fiance' named gina (who's a mac person!), listen to and spin drum'n'bass, deep house, and downtempo, and contemplate the illogical.