Lets say I have the class:
class Foo
{
public Foo(int value)
{
this.Value = value;
}
public int Value { get; private set; }
}
I will like to do the following:
var f = new Foo(1);
f = 5; // How can I do this? In here I want to change => f.Value
var x = f.Value; // I will like x to equal to 5 in here