C# - Get Last N characters from a string
September 22, 2019 · 1 min read

A simple C# extension method which use Substring to get the last N characters in a string.

C# - Get Web.Config Connection String in a Class Library
September 15, 2019 · 1 min read

If you can, pass the connection string as a parameter to the class library. Second option is System.Configuration.ConfigurationManager

Using AutoMapper in a .NET Core Class Library
September 11, 2019 · 2 min read

Configuring and using AutoMapper in a .NET CORE class library is briefed in this article.

Recommended Stories

C# Exception Handling Best Practices - DZone Performance
Sep 18, 2019

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.

C# Constructor: Usage, Examples, Best Practices, and Pitfalls
Aug 26, 2019

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.

C# 8: Static Local Functions and Using Declarations
Jul 10, 2019

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.

How to Debug LINQ queries in C#
Jun 13, 2019


Top 10 C# Developer Books for Summer 2019
Jun 12, 2019

A compilation of the best C# Developer Books to read in 2019 to improve your knowledge, and advance in your career.

A Practical Example Of Asynchronous Programming in C# and ASP.NET
May 25, 2019

Let's take an existing synchronous ASP.NET web app and begin refactoring it to use asynchronous programming. Sample C# project included.