A simple C# extension method which use Substring to get the last N characters in a string.
If you can, pass the connection string as a parameter to the class library. Second option is System.Configuration.ConfigurationManager
Configuring and using AutoMapper in a .NET CORE class library is briefed in this article.
Learn what an exception is, about the anatomy of C# exceptions, the basic try catch finally block, exception filters, and how to create C# exception types.
Today we define the concept of a C# constructor, then show usage examples with general tips on best practices to follow and pitfalls to be aware of.
The next major version release of the C# language (C# 8) comes with exciting new features. Let's look at two new features in C# 8, static local functions and the using declaration.
A compilation of the best C# Developer Books to read in 2019 to improve your knowledge, and advance in your career.