[Mono-list] Default Arguments

Brad Wilson dotnetguy@pobox.com
Fri, 3 May 2002 20:25:34 -0600


Brian Crowell wrote:

> System.Runtime.InteropServices.OptionalAttribute has a disclaimer in the
> documentation that says not all languages support optional parameters. So
> while this would be the correct way to mark the parameter so that it would
> be optional in VB.NET, it would still not be optional in C#, since C# does
> not support optional parameters.

Right. He was implementing something specifically for VB.net, not a general
purpose class (which he stated in his original e-mail). It's not a method he
designed, but rather one that's exposed in System.VisualBasic.dll.

> The System.ComponentModel namespace has nothing to do with COM; it is more
> for design surfaces, such as the ones in VS.NET.

Ahhh. :)

Brad

--
Read my web log at http://www.quality.nu/dotnetguy/