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 {