I have studied lots of books and materials on internet but I can never understand what is the use of delegate in development. Actually I want to know in what particular situation a developer should use delegate in code. Please provide me some example.