Merge pull request #129 from grumpydev/CryptoFixo
[mono.git] / mcs / class / System.XML / System.Xml.Serialization / XmlIncludeAttribute.cs
index 25862de81059f2a14df67a45d6b21f6f15bd4c51..e6d4b068101958d773c3e12aec3080a86634b2bb 100644 (file)
@@ -32,14 +32,21 @@ 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;
 
                public XmlIncludeAttribute (Type type)
                {
-                       Type = type;
+                       this.type = type;
                }
 
                public Type Type {