M
Mr. X.
In C# there is no optional parameter.
I use instead, what program that convert from VB.NET to C# recommand me to
do.
For optional parameter that is "Type" passed. What is the
defaultParameterValueAttribute -
compiler shouts that :
The DefaultValue attribute is not applicable on parameters of type
'System.Type' ...
The code :
[System.Runtime.InteropServices.OptionalAttribute,
System.Runtime.InteropServices.DefaultParameterValueAttribute(null)] ref
Type myType,
(Seems to long for setting optional attribute & default : null. in VB.NET it
was too short.
I think that instead of null, I should write something that "Type" can get
as a default).
How to solve the problem ?
Thanks
I use instead, what program that convert from VB.NET to C# recommand me to
do.
For optional parameter that is "Type" passed. What is the
defaultParameterValueAttribute -
compiler shouts that :
The DefaultValue attribute is not applicable on parameters of type
'System.Type' ...
The code :
[System.Runtime.InteropServices.OptionalAttribute,
System.Runtime.InteropServices.DefaultParameterValueAttribute(null)] ref
Type myType,
(Seems to long for setting optional attribute & default : null. in VB.NET it
was too short.
I think that instead of null, I should write something that "Type" can get
as a default).
How to solve the problem ?
Thanks