Hi localhost,
Thanks very much for your feedback.
I see your concern, as a substitution, you can use try...catch approach.
You can only apply try...catch in most-parameter overloading function, then
in other less-parameter overloading function, just invoke the
most-parameter overloading function, do like this:
public void func(object p1, object p2, object p3, object p4)
{
try
{
}
catch(Exception ex)
{
}
}
public void func(object p1, object p2, object p3)
{
object p4="default value";
func(p1,p2,p3,p4);
}
public void func(object p1, object p2)
{
object p4="default value";
object p3="default value";
func(p1,p2,p3,p4);
}
I think this may meet your need.
=============================================
Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.