* ProtocolImporter.cs: Use the binding name as class name for the
[mono.git] / mcs / class / System.XML / System.Xml.Serialization / SoapIncludeAttribute.cs
index b8928702f5c08a61346a0734c7f9e67689ba105e..42cb9577742d091ac8b9a81850f521830de460a4 100644 (file)
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-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
-                       Type = type;\r
-               }\r
-\r
-               public Type Type \r
-               {\r
-                       get { \r
-                               return type; \r
-                       }\r
-                       set { \r
-                               type = value; \r
-                       }\r
-               }\r
-       }\r
+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; 
+                       }
+               }
+       }
 }