@Rajeshatkiit Sir, are you seriously taking our interview ?
"Please give real example of event which you have created your own
Have a look at the way you have asked this question and the responses that you made in some other forum questions ( http://www.dotnetfunda.com/forums/show/20898/which-is-best-for-website-development-aspnet-or-mvc
" I am asking
about which is best ASP.net or MVC ? "
and ( http://www.dotnetfunda.com/forums/show/20899/what-is-difference-between-abstract-factory-and-factory-method-design
"Plz explain in detail instead of posting url
Have you done any kind of research on the topic before asking the question. If so, where exactly you had the doubt ? We have provided a reference to you (because it was written elegantly and precisely addressed to your question) and requested you to go through that and once you have any doubt then please let us know where you have that.
Please don't ask a question where it reflects the dictatorship or dogmatism.
We hope you will accept our statement in a cordial manner.
Coming to the main topic
a) How to create custom events using delegates
No need to mention that. If there is any other way in dotnet for creating custom events without using delegates (or the later improvement i.e. Lambda), please let us know.
b) Please give real example of event which you have created your own?
Many. But among those many, I would like to highlight the best use-case (as of now). We were working on a project of Excel VSTO where we need to communicate between two different excel applications since their app domain changed. In simple words, any Publisher/Subscriber model will use this and generally the best design pattern for this is Observer DP.
Another example is to invoke the event of a control inside a user control in asp.net
c) Please do not provide any web url.
Thanks for your understanding.Rajeshatkiit, if this helps please login to Mark As Answer. | Alert Moderator