use - C# (.Net Framework 4.5, Visual Studio 2012)
I try to understand such theme like Delegate, and currently I have few points, that must be clarified for me. I fo
Delegates in c# are a little bit like a replacement for function pointers in C++. There are plenty of usages for them. You can use them to:
From my experience the first usage is the most common.
Button.Click += delegate(object sender, EventArgs args) => {/*you do something here*/};
Which can be simplified by a lamba expression:
Button.Click += (sender, args) => {/*you do something here*/};
You provide some behavior to a button click not having to create a separate method for it.
Regarding to the second part of your question, I usually put delegates declarations in separate files.