Is the return value used?
I have a method lik ethis:
public bool DoSomething()
{
....
}
It is possible to use this method like this:
if (DoSomething())
....
or like this
DoSomething();
Is there anyway that I can, within the DoSomething method, figure out from reflection or somewhere else if the return value is used by the calling code?
Any help is much appreciated?
Best regards
Poul Lindholm Christiansen