D
David Williams , VB.NET MVP
As I start to dig into C#, this is one major issue that I have run into
also. According to the specs for C#, optional parameters are not
supported.
also. According to the specs for C#, optional parameters are not
supported.
Stano said:I know that this might be getting away from the original post, but I have
a question about optional paramters in C#.
I originally developed a COM DLL using VB.NET which had an optional
parameter in one of the methods. I ported the entire project to C# (as I
decided C# was the way to go) but I was unable to work out how to redefine
the COM interface in C# with an optional COM parameter.
In the end the COM interface was defined in VB.NET and the rest of the
project was written using C#. I know that this isn't a big deal, but it's
been bugging me for a while now. Does anyone have any ideas on how to do
this?
Thanks.