2 // XmlAttributeAttribute.cs:
5 // John Donagher (john@webmeta.com)
7 // (C) 2002 John Donagher
10 using System.Xml.Schema;
\r
13 namespace System.Xml.Serialization
\r
16 /// Summary description for XmlAttributeAttribute.
\r
18 [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field
\r
19 | AttributeTargets.Parameter | AttributeTargets.ReturnValue)]
\r
20 public class XmlAttributeAttribute : Attribute
\r
22 private string attributeName;
\r
23 private string dataType;
\r
25 private XmlSchemaForm form;
\r
28 public XmlAttributeAttribute ()
\r
32 public XmlAttributeAttribute (string attributeName)
\r
34 AttributeName = attributeName;
\r
37 public XmlAttributeAttribute (Type type)
\r
42 public XmlAttributeAttribute (string attributeName, Type type)
\r
44 AttributeName = attributeName;
\r
48 public string AttributeName {
\r
53 attributeName = value;
56 public string DataType {
\r
64 public XmlSchemaForm Form {
\r
72 public string Namespace {
\r
93 internal bool InternalEquals (XmlAttributeAttribute other)
\r
95 if (other == null) return false;
\r
97 return (attributeName == other.attributeName &&
\r
98 dataType == other.dataType &&
\r
99 type == other.type &&
\r
100 form == other.form &&
\r