Issue #7: DotNet (.NET)
Ahmed Tarek Hasan
Senior Software Design Engineer @ASML (Advanced Semiconductor Material Lithography) | Technical Blogger | Development Simply Put (DevelopmentSimplyPut.com)
This issue would be about some?topics for DotNet (.NET)?developers.
Notes:
Useful Free Online Tools For Developers
As a Software Developer, you have some tasks which you regularly need to take care of. Tasks like quickly compiling, running, and testing a line of code, formatting code, converting some code or exporting it as an image, editing or converting an image,… and some other similar tasks.
Therefore, I compiled a list of the?free?online?tools I usually use for such kind of tasks.
领英推荐
Observer Design Pattern in .NET C#
The?Observer Design Pattern?is one of the most important and commonly used design patterns, and this is for a reason.
First, let’s check the formal definition of the?Observer Design Pattern.
As per?Microsoft’s documentation:
The observer design pattern enables a subscriber to register with and receive notifications from a provider. It is suitable for any scenario that requires?push-based notification.?The?pattern defines a?provider?(also known as a?subject?or an?observable) and zero, one, or more?observers. Observers register with the provider, and whenever a predefined condition, event, or state change occurs, the provider automatically notifies all observers by calling one of their methods. In this method call, the provider can also provide current state information to observers. In .NET, the observer design pattern is applied by implementing the generic?System.IObservable<T>?and?System.IObserver<T>?interfaces. The generic type parameter represents the type that provides notification information.
So, from the definition above, we can understand the following:
That’s it, hope you find reading this newsletter as interesting as I found writing it ??