Microsoft released .NET Framework 1.0 as its software framework for Windows platform. Since then it has been continuously updating it to meet the technological advancements. In June 2017, Microsoft redefined the core architecture of .NET Framework to simplify development, testing and deployment. The company released .NET core 1.0 along with ASP .NET Core 1.0 with Entity Framework. .NET Core does have some learning curve in it. As of Oct 2020, the latest version of .NET Framework is 4.7. Microsoft is unlikely to release new versions of this framework in the future. The latest version of .NET Core is 3.0 Understanding the major differences between the 2 platforms: Open Source - .NET Framework was released as a licensed and proprietary framework. But the company has released .NET Core as open source framework. Hence individuals can build apps on .NET Core without paying any license fees. Cross Platform - ...
What is Singleton design pattern? Of the Gang of Four design patterns, Singleton is the Creational design pattern used while creation of the object of the class. The creational design pattern is a technique to ensure that there is strictly only one instance of a particular class in your program. Why Singleton? Suppose that your classes are using external resources like a database server, or a web Api etc, it would be a real problem if multiple objects try to use those resources at the same time. In such cases, singleton design pattern can help in overcoming the drawback in the above scenarios. Real world example with code Suppose your program need to log the changes made in some data into a log file. Generally, in absence of the pattern, multip le objects may try to access the same log file which could create conflict. With a singleton log class object, you don't need to worry about several different objects trying to access the sa...