c# access owner object from delegate function
<p>Can I access an object that contains a delegate from within that delegate?</p>

<p>e.g.</p>

<pre><code>class Salutation {

     public string OtherParty {get; set;}
     public AddressDelegate GreetingDelegate {get; set;}

}

public delegate void AddressDelegate ();
</code></pre>

<p>Then...</p>

<pre><code>void Main() {
    Salutation hello = new Salutation { 
        OtherParty = "World",
        GreetingDelegate = new AddressDelegate(HelloSayer)
    };

    hello.GreetingDelegate();
}

private void HelloSayer() {
    Console.WriteLine(string.Format("Hello, {0}!", OtherParty));  
}
</code></pre>

<p>So is it possible to refer to the <code>OtherParty</code> property from the Salutation class from within the <code>HelloSayer</code> function, or do I need to pass the data as a parameter to the function?</p>