You could use a temporary variable to make this work, like this:
int temp = this.SomeProperty;
SomeMethodCall(ref temp);
this.SomeProperty = temp;
On a different note, I would advise you to avoid
ref and
out parameters if possible. It's not like they're inherently "bad" but overusing them will make your code hard to understand and the risk of introducing bugs increases. An option to remove your ref-parameters here might be to encapsulate Session, Response, oPage and oUser in a class which you can then pass as a parameter without
ref.