G
Guest
I have the following method:
public void Execute(TCPCommand command, out string outputResponse, out
string error)
{
//snipped code
outputResponse = "some message";
error = "";
}
now I need to a new overload for this without error and output parameters:
public void Execute(TCPCommand command)
{
string param;
Execute(command, out param, out param);
}
But it doesn't feel right declaring new string variable just for that.. Is
there a way to pass in "null" references. String.Empty doesn't work. Or is
this the best way to handle something like this.
Thanks!
public void Execute(TCPCommand command, out string outputResponse, out
string error)
{
//snipped code
outputResponse = "some message";
error = "";
}
now I need to a new overload for this without error and output parameters:
public void Execute(TCPCommand command)
{
string param;
Execute(command, out param, out param);
}
But it doesn't feel right declaring new string variable just for that.. Is
there a way to pass in "null" references. String.Empty doesn't work. Or is
this the best way to handle something like this.
Thanks!