[Mono-list] Attributes bug or missing feature
Pablo Baena
pbaena@uol.com.ar
28 Apr 2003 17:04:43 +0000
--=-f+plr+UI9RCr+jl2thtX
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
I'm reporting this to bugzilla. This works in .NET. Other simple types
work in mono but not strings.
namespace T
{
using System;
[AttributeUsage (AttributeTargets.Field)]
public class myAttAttribute : Attribute
{
//I'll use various types
public object def;
public myAttAttribute (object _def)
{
def = _def;
}
}
class test
{
[myAtt ("crash boom bang")]
string a;
public static void Main ()
{
}
}
}
--
Pablo Baena <pbaena@uol.com.ar>
--=-f+plr+UI9RCr+jl2thtX
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/1.1.7">
</HEAD>
<BODY>
I'm reporting this to bugzilla. This works in .NET. Other simple types work in mono but not strings.<BR>
<BR>
<PRE>namespace T
{
using System;
[AttributeUsage (AttributeTargets.Field)]
public class myAttAttribute : Attribute
{
//I'll use various types
public object def;
public myAttAttribute (object _def)
{
def = _def;
}
}
class test
{
[myAtt ("crash boom bang")]
string a;
public static void Main ()
{
}
}
}
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
-- <BR>
Pablo Baena <<A HREF="mailto:pbaena@uol.com.ar">pbaena@uol.com.ar</A>>
</TD>
</TR>
</TABLE>
</PRE>
</BODY>
</HTML>
--=-f+plr+UI9RCr+jl2thtX--