Automatically place the ‘System’ directives first when ‘Sorting Usings’ option in Visual Studio

Sort and Remove the unused namespaces is a standard coding practices.  In the Visual Studio IDE, you can achieve it very easily with the help of  “Organize Usings” options,  or just enable a shortcut key like explained in the Remove and Sort – Namespaces using Shortcut in Visual Studio tip.  In sort, we have three different options […]

Create your own development environment View – Custom Windows Layouts in Visual Studio 2015

Visual Studio 2015 introduced a nice feature, which let us customize the overall IDE experience and reuse it further. This becomes very handy if you develop on multiple devices or multiple monitors, and generally most of the developer does that. We develop applications either in  Laptop, Tablet and as well as large screen monitors. Depends on […]

Null – Conditional Operators in C# 6.0

Along with the nameof operator, C# 6.0 also introduced Null-Conditional operator that enable developers to check the null value with in an object reference chain. The null –  conditional operator ( ?.) , returns null if anything in the object reference chain in null. This avoid checking null for each and every nested objects if they […]

Using nameof Operator in C# 6.0

C# 6.0 introduced a new operator named, nameof  that accepts the name of code element and returns a string literal of the same element.  The nameof operator can take as a parameter like class name and its all members like method, variables, properties and return the string literal.  This avoids having hardcoded strings to be […]