Friday, 6 September 2013

event EventHandler is assigned to empty delegate

event EventHandler is assigned to empty delegate

I am reading through some code and found this line:
public event EventHandler Lock = delegate { }
What does it do?
Why would someone use such a piece of code?

No comments:

Post a Comment