X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem.XML%2FSystem.Xml.Schema%2FXmlSchemaAnnotated.cs;h=a9f788aa83f8d14fcddf624551725b3f21d2974d;hb=69b0edce3104f9dc48fd366d91c24012e46bec42;hp=da2684670d62f5d83378cf249a790f1c706dc508;hpb=b6b13e72e91d5b529a6306ce53bda685932c77db;p=mono.git diff --git a/mcs/class/System.XML/System.Xml.Schema/XmlSchemaAnnotated.cs b/mcs/class/System.XML/System.Xml.Schema/XmlSchemaAnnotated.cs index da2684670d6..a9f788aa83f 100644 --- a/mcs/class/System.XML/System.Xml.Schema/XmlSchemaAnnotated.cs +++ b/mcs/class/System.XML/System.Xml.Schema/XmlSchemaAnnotated.cs @@ -1,5 +1,5 @@ -// Author: Dwivedi, Ajay kumar -// Adwiv@Yahoo.com +// Author: Dwivedi, Ajay kumar +// Adwiv@Yahoo.com // // Permission is hereby granted, free of charge, to any person obtaining @@ -21,57 +21,57 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; -using System.Collections; -using System.Xml; -using System.Xml.Serialization; - -namespace System.Xml.Schema -{ - /// - /// Summary description for XmlSchemaAnnotated. - /// - - public class XmlSchemaAnnotated : XmlSchemaObject - { - private XmlSchemaAnnotation annotation; - private string id; - private XmlAttribute[] unhandledAttributes; - - public XmlSchemaAnnotated() - {} - - [System.Xml.Serialization.XmlAttribute("id", DataType="ID")] - public string Id - { - get{ return id; } - set{ id = value; } - } - - [XmlElement("annotation", Type=typeof(XmlSchemaAnnotation))] - public XmlSchemaAnnotation Annotation - { - get{ return annotation; } - set{ annotation = value; } - } - - [XmlAnyAttribute] - public XmlAttribute[] UnhandledAttributes - { - get - { - if(unhandledAttributeList != null) - { - unhandledAttributes = (XmlAttribute[]) unhandledAttributeList.ToArray(typeof(XmlAttribute)); - unhandledAttributeList = null; - } - return unhandledAttributes; - } - set - { - unhandledAttributes = value; - unhandledAttributeList = null; - } - } - } -} +using System; +using System.Collections; +using System.Xml; +using System.Xml.Serialization; + +namespace System.Xml.Schema +{ + /// + /// Summary description for XmlSchemaAnnotated. + /// + + public class XmlSchemaAnnotated : XmlSchemaObject + { + private XmlSchemaAnnotation annotation; + private string id; + private XmlAttribute[] unhandledAttributes; + + public XmlSchemaAnnotated() + {} + + [System.Xml.Serialization.XmlAttribute("id", DataType="ID")] + public string Id + { + get{ return id; } + set{ id = value; } + } + + [XmlElement("annotation", Type=typeof(XmlSchemaAnnotation))] + public XmlSchemaAnnotation Annotation + { + get{ return annotation; } + set{ annotation = value; } + } + + [XmlAnyAttribute] + public XmlAttribute[] UnhandledAttributes + { + get + { + if(unhandledAttributeList != null) + { + unhandledAttributes = (XmlAttribute[]) unhandledAttributeList.ToArray(typeof(XmlAttribute)); + unhandledAttributeList = null; + } + return unhandledAttributes; + } + set + { + unhandledAttributes = value; + unhandledAttributeList = null; + } + } + } +}