- // \r
-// System.Web.Services.Configuration.XmlFormatExtensionAttribute.cs\r
-//\r
-// Author:\r
-// Tim Coleman (tim@timcoleman.com)\r
-//\r
-// Copyright (C) Tim Coleman, 2002\r
-//\r
+ //
+// System.Web.Services.Configuration.XmlFormatExtensionAttribute.cs
+//
+// Author:
+// Tim Coleman (tim@timcoleman.com)
+//
+// Copyright (C) Tim Coleman, 2002
+//
//
// Permission is hereby granted, free of charge, to any person obtaining
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-\r
-namespace System.Web.Services.Configuration {\r
- [AttributeUsage (AttributeTargets.Class, Inherited = true)]\r
- public sealed class XmlFormatExtensionAttribute : Attribute {\r
-\r
- #region Fields\r
-\r
- string elementName;\r
- string ns;\r
- Type[] extensionPoints;\r
-\r
- #endregion // Fields\r
-\r
- #region Constructors\r
-\r
- public XmlFormatExtensionAttribute ()\r
- {\r
- }\r
-\r
- public XmlFormatExtensionAttribute (string elementName, string ns, Type extensionPoint1)\r
- : this (elementName, ns, new Type[1] {extensionPoint1})\r
- {\r
- }\r
-\r
- public XmlFormatExtensionAttribute (string elementName, string ns, Type[] extensionPoints)\r
- : this ()\r
- {\r
- this.elementName = elementName;\r
- this.ns = ns;\r
- this.extensionPoints = extensionPoints;\r
- }\r
-\r
- public XmlFormatExtensionAttribute (string elementName, string ns, Type extensionPoint1, Type extensionPoint2)\r
- : this (elementName, ns, new Type[2] {extensionPoint1, extensionPoint2})\r
- {\r
- }\r
-\r
- public XmlFormatExtensionAttribute (string elementName, string ns, Type extensionPoint1, Type extensionPoint2, Type extensionPoint3)\r
- : this (elementName, ns, new Type[3] {extensionPoint1, extensionPoint2, extensionPoint3})\r
- {\r
- }\r
-\r
- public XmlFormatExtensionAttribute (string elementName, string ns, Type extensionPoint1, Type extensionPoint2, Type extensionPoint3, Type extensionPoint4)\r
- : this (elementName, ns, new Type[4] {extensionPoint1, extensionPoint2, extensionPoint3, extensionPoint4})\r
- {\r
- }\r
- \r
- #endregion // Constructors\r
-\r
- #region Properties\r
-\r
- public string ElementName {\r
- get { return elementName; }\r
- set { elementName = value; }\r
- }\r
-\r
- public Type[] ExtensionPoints {\r
- get { return extensionPoints; }\r
- set { extensionPoints = value; }\r
- }\r
-\r
- public string Namespace {\r
- get { return ns; }\r
- set { ns = value; }\r
- }\r
-\r
- #endregion // Properties\r
- }\r
-}\r
+
+namespace System.Web.Services.Configuration {
+ [AttributeUsage (AttributeTargets.Class, Inherited = true)]
+ public sealed class XmlFormatExtensionAttribute : Attribute {
+
+ #region Fields
+
+ string elementName;
+ string ns;
+ Type[] extensionPoints;
+
+ #endregion // Fields
+
+ #region Constructors
+
+ public XmlFormatExtensionAttribute ()
+ {
+ }
+
+ public XmlFormatExtensionAttribute (string elementName, string ns, Type extensionPoint1)
+ : this (elementName, ns, new Type[1] {extensionPoint1})
+ {
+ }
+
+ public XmlFormatExtensionAttribute (string elementName, string ns, Type[] extensionPoints)
+ : this ()
+ {
+ this.elementName = elementName;
+ this.ns = ns;
+ this.extensionPoints = extensionPoints;
+ }
+
+ public XmlFormatExtensionAttribute (string elementName, string ns, Type extensionPoint1, Type extensionPoint2)
+ : this (elementName, ns, new Type[2] {extensionPoint1, extensionPoint2})
+ {
+ }
+
+ public XmlFormatExtensionAttribute (string elementName, string ns, Type extensionPoint1, Type extensionPoint2, Type extensionPoint3)
+ : this (elementName, ns, new Type[3] {extensionPoint1, extensionPoint2, extensionPoint3})
+ {
+ }
+
+ public XmlFormatExtensionAttribute (string elementName, string ns, Type extensionPoint1, Type extensionPoint2, Type extensionPoint3, Type extensionPoint4)
+ : this (elementName, ns, new Type[4] {extensionPoint1, extensionPoint2, extensionPoint3, extensionPoint4})
+ {
+ }
+
+ #endregion // Constructors
+
+ #region Properties
+
+ public string ElementName {
+ get { return elementName; }
+ set { elementName = value; }
+ }
+
+ public Type[] ExtensionPoints {
+ get { return extensionPoints; }
+ set { extensionPoints = value; }
+ }
+
+ public string Namespace {
+ get { return ns; }
+ set { ns = value; }
+ }
+
+ #endregion // Properties
+ }
+}