I would like to understand. In C# could we say that each class that define an event is a subject of an (hypothetical) observer pattern?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, you can. Though there is also an IObserver Interface in the .NET Framework, events are the best way to do it. You can read Microsoft’s desctiption on the matter.