Archive for October, 2008
C# events are actually accessors
By admin - Last updated: Wednesday, October 15, 2008
An interesting feature of C# I discovered recently is that events are actually accessors into Multicast Delegates, much like properties are accessors into other fields.
private string myData;
public string MyData // A property
{
get { return myData; } // called when the property is read
set { myData = value; } // called when [...]