* ProtocolImporter.cs: Use the binding name as class name for the
[mono.git] / mcs / class / System.XML / System.Xml.Serialization / SoapIncludeAttribute.cs
index d650bb7ba675d381cb05ae6c05abe22bcd56f3fe..42cb9577742d091ac8b9a81850f521830de460a4 100644 (file)
@@ -1,59 +1,62 @@
-//\r
-// SoapIncludeAttribute.cs: \r
-//\r
-// Author:\r
-//   John Donagher (john@webmeta.com)\r
-//\r
-// (C) 2002 John Donagher\r
-//\r
-\r
-//\r
-// Permission is hereby granted, free of charge, to any person obtaining\r
-// a copy of this software and associated documentation files (the\r
-// "Software"), to deal in the Software without restriction, including\r
-// without limitation the rights to use, copy, modify, merge, publish,\r
-// distribute, sublicense, and/or sell copies of the Software, and to\r
-// permit persons to whom the Software is furnished to do so, subject to\r
-// the following conditions:\r
-// \r
-// The above copyright notice and this permission notice shall be\r
-// included in all copies or substantial portions of the Software.\r
-// \r
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
-//\r
-\r
-using System;\r
-\r
-namespace System.Xml.Serialization\r
-{\r
-       /// <summary>\r
-       /// Summary description for SoapIncludeAttribute.\r
-       /// </summary>\r
-       [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct |\r
-                AttributeTargets.Method, AllowMultiple=true)]\r
-       public class SoapIncludeAttribute : Attribute\r
-       {\r
-               private Type type;\r
-\r
-               public SoapIncludeAttribute( Type type) \r
-               {\r
-                       this.type = type;\r
-               }\r
-\r
-               public Type Type \r
-               {\r
-                       get { \r
-                               return type; \r
-                       }\r
-                       set { \r
-                               type = value; \r
-                       }\r
-               }\r
-       }\r
-}\r
+//
+// SoapIncludeAttribute.cs: 
+//
+// Author:
+//   John Donagher (john@webmeta.com)
+//
+// (C) 2002 John Donagher
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// 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;
+
+namespace System.Xml.Serialization
+{
+#if NET_2_0
+       [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct |
+                AttributeTargets.Interface | AttributeTargets.Method,
+                AllowMultiple=true)]
+#else
+       [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct |
+                AttributeTargets.Method, AllowMultiple=true)]
+#endif
+       public class SoapIncludeAttribute : Attribute
+       {
+               private Type type;
+
+               public SoapIncludeAttribute( Type type) 
+               {
+                       this.type = type;
+               }
+
+               public Type Type 
+               {
+                       get { 
+                               return type; 
+                       }
+                       set { 
+                               type = value; 
+                       }
+               }
+       }
+}