[Mono-list] Reply: Default arguments

Stijn "Adhemar" Vandamme spvdamme@vtk2.rug.ac.be
Sat, 4 May 2002 10:55:56 +0200 (CEST)


Hello,

If memory serves me right, Brian Crowell wrote on Friday May 3, 2002:

> (...) 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. (...)

That is rather strange.
See the example on

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconaccessingdefaultargumentvalues.asp

It shows a plublic method (sub) MyMethod, created in Visual Basic.Net
with 2 optional parameters, and called in C# without the optional parameters.

Adhemar.