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

Raja R Harinath rharinath at novell.com
Fri Jun 25 01:03:10 EDT 2004


Hi,

"A Rafael D Teixeira" <rafaelteixeirabr at hotmail.com> writes:

> Kudos Raja, you went right to the point.
>
> The problem is (besides the MonoTODO) that if C# doesn't have the syntax
> to support it, we may have to rewrite part, or the whole, of our library
> in VB.NET, or put an option in mcs to specifically allow such extension
> of syntax (Miguel probably wouldn't like that).

If it is just for us to implement Microsoft.VisualBasic in C#, we
probably don't need a special syntax for this.  We can have an internal
attribute named

  Microsoft.VisualBasic.Mono__DefaultValueAttribute

And either 'mcs' or ParameterBuilder.SetCustomAttribute() can handle this
specially.  However, it won't work with CSC -- I don't see that as a
major problem, though.

If you want to provide a general facility for expressing this CIL
capability in C#, then, yeah -- it's a problem :-)

- Hari



More information about the Mono-devel-list mailing list