Get setting from configuration file.
References Add System.Configration reference. App.config or Web.config Code
Prevent multiple instance of your app from running.
Add the following code to prevent multiple instance of your app from running.
Adding log4net to your .NET application.
Logging frameworks that allows you to easy to write your logs to different places by simply changing your configuration. You can write your .NET logs to a file on disk, a database, a log management system or potentially dozens of other places, all without changing your code. Installing Run this quick command from the Package Manager... » read more
Angular or React – For .NET Developers
The Culture and People Angular is built by a team of engineers who share a passion for making web development feel effortless. We believe that writing beautiful apps should be joyful and fun. We’re building a platform for the future. The two biggest software development corporations, Google and Microsoft, are behind Angular development. Being close... » read more
ASP.NET 4.x and ASP.NET Core
ASP.NET Core is a redesign of ASP.NET 4.x. This article lists the differences between them. ASP.NET Core ASP.NET Core is an open-source, cross-platform framework for building modern, cloud-based web apps on Windows, macOS, or Linux. ASP.NET Core provides the following benefits: A unified story for building web UI and web APIs. Architected for testability. Razor... » read more
Managed vs Unmanaged Code
Unmanaged code is compiled to machine code and therefore executed by the OS directly. It therefore has the ability to do damaging/powerful things Managed code does not. This is how everything used to work, so typically it’s associated with old stuff like .dlls. M Managed code is not compiled to machine code but to an intermediate language... » read more
Reference vs. Value
When a parameter is passed by value, the caller and callee have two independent variables with the same value. If the callee modifies the parameter variable, the effect is not visible to the caller. When a parameter is passed by reference, the caller and the callee use the same variable for the parameter. If the callee modifies the parameter... » read more