Is the return value used?

Aug 29 2011 4:17 PM
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

Answers (1)