Category Archives: Tips

Directly throw Exception as an Expression – Throw expressions in C# 7.0

In one of our previous post, Expression – Bodied Members in C# 7.0 , we have seen how C# 7.0 extended the expression bodied members features for several new members including  constructor, destructor, property assessors etc. C# 7.0 also introduces throw expressions, using which you can now throw an exception along with expression-bodied members, conditional expressions or even null-coalescing operations.… Read More »

Did you know – you can just “copy the code” as well from C# Interactive Window ?

The Interactive Window in Visual Studio is a great utility to play around the code, language features, API’s and other .NET framework features.   The Interactive Window also support features like IntelliSense, syntax highlighting and navigating through executed commands. Previously we have seen several tips around the C# Interactive Window, but there is one very interesting feature you… Read More »

How To customize “Structure Guide Lines” Colors in Visual Studio 2017 ?

In Visual Studio 2017   dotted structure guide lines in your code, between the curly braces ({}), helps in identifying the individual blocks easily.  Also, hover over on the lines, it will shows the tooltip with opening of that block and its parents. In the previous post we have seen how to Turning On/Off “Structure Guide Lines” in… Read More »