How to bind object's property to another object's property? (C#)
<p>I'm making a graphic control class <code>Info</code> which should display some text on screen. The text is some object's string. I'd like to be able to get that object's latest value from within an instance of <code>Info</code> class.</p>

<pre><code>class Info
{
    public string Text;
}

void Program()
{
    ClassA obj = new ClassA();
    obj.name = "Instance of ClassA";
    Info wind1 = new Info();
    wind1.Text = obj.name; // this just copies current value, but should be a reference or something 

    /* obj.name value changes several times before it's time to display it again */

    // Info window drawing method
    foreach (var item in Windows) // Windows is List&lt;Info&gt;
    Draw(item.Text); // this doesn't get the latest value
}
</code></pre>

<p>How should I change the code so I can get the latest string value from within the drawing section?</p>
