Merge pull request #129 from grumpydev/CryptoFixo
[mono.git] / mcs / class / System.XML / System.Xml.Serialization / XmlIncludeAttribute.cs
index 2e7b9eb46b4e516a4131a918a135ad3228981d71..e6d4b068101958d773c3e12aec3080a86634b2bb 100644 (file)
@@ -32,7 +32,14 @@ using System;
 
 namespace System.Xml.Serialization
 {
-       [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method, AllowMultiple=true)]
+#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 XmlIncludeAttribute : Attribute
        {
                private Type type;