Possible Duplicate:
Meaning of text between square brackets
The class I’m looking at looks like
public class SaveBundle
{
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
public SaveBundleHeader Header
{
get
{
return this.headerField;
}
set
{
this.headerField = value;
}
}
}
I don’t know why the [System.Xml.Serialisztion.Xml etc] exists or what it is called to research it further?
Can some one tell me the name of [] and what in this example it’s purpose is?
It’s the attribute
XmlElementbeing set on the propertyHeaderYou should be able to look it up as
XmlElementAttributeon MSDN. Like here.