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
Unfortunately you are required to pass something because the method is required to set it. So you cannot send null
because the method, being required to set it, would blow up.
One approach to hide the ugliness would be to wrap the method in another method that does the out
parameter for you like so:
String Other_MakeMyCall(String inputParams)
{
String messages;
return MakeMyCall(inputParams, out messages);
}
Then you can call Other_MakeMyCall
without having to fiddle with out
parameters you don't need.