[Mono-devel-list] NET_2_0 attributes

Paolo Molaro lupus at ximian.com
Wed Sep 22 10:33:04 EDT 2004

On 09/14/04 Sebastien Pouliot wrote:
> +		[MonoTODO ("A lot of work here")]
> +		object ReconstructDllImportAttribute ()
> This seems to be a *partial* implementation to
> http://bugzilla.ximian.com/show_bug.cgi?id=62372
> and that should be noted in the ChangeLog
> The bug entry links to a full list of the pseudo attributes
> http://blogs.msdn.com/adam_nathan/archive/2003/04/29/56645.aspx
> When I looked at this issue, also hoping for a managed-side fix, I was
> pretty sure that we couldn't get a complete implementation from the managed
> side (after reading the MSDN blog). At least not without (a) modifying the
> currently used runtime icalls or (b) adding new icalls in the runtime. I
> don't think that, both for performance and for understanbility, that we want
> to split the attribute gathering in both the runtime and the class library.

I think we need to implement this stuff in the C part of the runtime.
The icalls need to be changed, too, to match the MS CLR implementation
wrt attribute creation. Last time I checked:
*) IsDefined() didn't cause the attributes to be created
*) GetCustomAttributes (type, ...) caused just the attributes matching
type to be created
*) the attributes need to be created at each invocation (I think we
might have fixed this already)


lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better

More information about the Mono-devel-list mailing list