Hi,
    I don't know if this is expected behaviour or a bug.
 
The following code does not compile with mcs but works fine with csc
      
> using System.Xml.Serialization;
    public class SerializableClass
    {
        [XmlAttribute( Type=typeof(MyEntry) )]
        public Entry myEntry;
    }
 
    public class Entry{}
    public class MyEntry : Entry{}
 
It fails with the error CS0182: An attribute argument must be a constant expression, typeof expression or array creation expression.
 
 
kojo
 

Reply via email to