I\'m making a call:
myResult = MakeMyCall(inputParams, out messages);
but I don\'t actually care about the messages. If it was an input pa
If the original function is declared like this:
class C
{
public Result MakeMyCall(Object arg, out List messages);
}
You can declare an extension method like this:
static class CExtension
{
public static Result MakeMyCall(this C obj, Object arg)
{
List unused;
return obj.MakeMyCall(arg, out unused);
}
}
The extension method will behave like an overload that makes the out parameter optional.