|
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
|
- Re: [Mono-list] Microsoft Offic... Serge
- Re: [Mono-list] Microsoft ... Gaurav Vaish
- RE: [Mono-list] Microsoft Office HT... Daniel Morgan
- Re: [Mono-list] Microsoft Offic... Martin Baulig
- Re: [Mono-list] (no subject) Daniel Carrera
- [Mono-list] (no subject) Krister Hansson
- [Mono-list] (no subject) Henrique Brancher Gravina
- Re: [Mono-list] (no subject) Miguel de Icaza
- [Mono-list] (no subject) Simon Waite
- [Mono-list] (no subject) Steinar Herland
- Re: [Mono-list] Attribute problem with mcs kojo
- Re: [Mono-list] Attribute problem with mcs Gonzalo Paniagua Javier
- [Mono-list] (no subject) Seun Osewa
- Re: [Mono-list] (no subject) Dick Porter
- [Mono-list] (no subject) Girish Pal Singh
- Re: [Mono-list] (no subject) Dietmar Maurer
- Re: [Mono-list] (no subject) Gaurav Vaish
- [Mono-list] (no subject) fgonthier
- [Mono-list] (no subject) Piyush, Garyali (IE10)
- [Mono-list] (no subject) David Sheldon
- [Mono-list] (no subject) Krisztian Gyuris
