2 snippets, 6 videos, 20 developer stories and 6 posts tagged with “C#”

NDepend - The Best-in-class Static Code Analyzer for Dotnet
December 09, 2020 · 3 min read

NDepend is my favorite static code analyzer for dotnet. Check how I use it.

C# - Convert DateTime to Long and Vice Versa
October 29, 2019 · 2 min read

Transform datetime to long or long to datetime in C#.

C# - Get Last N characters from a string
September 22, 2019 · 2 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 · 2 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 · 3 min read

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

Check if string is Arabic - C#
September 06, 2017 · 2 min read

In one simple line of code, we can check whether the given string is Arabic or not, in C#.