Hi,

I'm new to Mono: I just downloaded and installed it yesterday, and I'm
currently trying to run a couple of programs that compile and run on
"normal" Windows .NET.  One of my programs uses attributes that take
various kinds of arguments:

        [myAttribute("stringArgument", (String)null, (String)null, 2)]

And when compiling the code, I get the following error message:

        myCode.cs(204) error CS0182: An attribute argument must be a constant
        expression, typeof expression or array creation expression
        myCode.cs(221) error CS0182: An attribute argument must be a constant
        expression, typeof expression or array creation expression
        Compilation failed: 2 error(s), 0 warnings

Does anyone know why this happens?

Thanks in advance for your help.

Hamza.

_______________________________________________
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to