[Mono-devel-list] Re: [mono-vb] VB Class status

Jambunathan Jambunathan kjambunathan at novell.com
Wed Jun 23 12:31:10 EDT 2004


The errors in Microsoft.VisualBasic may seem intimidating at first.
Most of the errors are due to a mismatch in the Parameter Attributes.

Many VB functions/methods support optional parameters with a default
value. MS's dll marks the Parameter with Optional, HasDefault
attributes.

In our C# implementation of the method, we mark such parameters using
the
following two attributes: System.Runtime.InteropServices.Optional 
and System.ComponentModel.DefaultValue(). As a result Mono's dll has
Parameter Attributes just set to Optional ( but has no HasDeafult ).

I am not sure whether this is bug or a baggage not carried from the
past.
( Quick googling suggested that just using C# it's not possible to
create a parameter with Parameter Attributes set to Optional |
HasDeafult.

Just posting to the mailing list with the hope that I will get a quick
response.

Regards,
Jambunathan K.


 
 
>>>"Jochen Wezel" <jwezel at compumaster.de> 06/23 5:42 pm >>> 
Hey, the class status got updated! 
We've got 97 % now... :) 
 
...and 230 errors :( 
_______________________________________________ 
Mono-vb mailing list 
Mono-vb at lists.ximian.com 
http://lists.ximian.com/mailman/listinfo/mono-vb 



More information about the Mono-devel-list mailing list