[Mono-devel-list] NET_2_0 attributes

Marek Safar marek.safar at seznam.cz
Wed Sep 22 11:28:43 EDT 2004


Hello,

>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
>  
>
OK, but that is different story. This is all valid for normal attributes 
not for pseudo.

>*) GetCustomAttributes (type, ...) caused just the attributes matching
>type to be created
>  
>
For pseudo attributes this is fulfilled.

>*) the attributes need to be created at each invocation (I think we
>might have fixed this already)
>  
>
For parameterless attribute it is useless.

>
>  
>
Marek



More information about the Mono-devel-list mailing list