Archives for All Articles - Page 4
Switch Statement Enhancements in C# 7.0
Now from C# Switch statement will be having more power in matching the cases. Earlier, Switch statement can be used only for primitive and string types. But now we can…
Understanding Pattern Matching in C# 7.0
As we are aware of is-Expression where we can use is keyword to verify the given type. In C# , this has been extended to constant, type as well as var patterns. Let's dig into…
Out Variable Enhancements in C# 7.0
In C# , there were a couple of improvements in using out variable. To understand these enhancements we need to know how it was implemented in earlier versions , till C# Following is the…
Expression Bodies in C# 7.0
A new feature was introduced from C# is Expression Bodies. This feature makes your code more readable and can reduce the number of lines of code drastically. There are 3…
Throwing Exceptions in Expressions: C# 7.0
In C# , they introduced a new feature or we can say more flexible to throw the exceptions in Lambda expressions. Before seeing this, yet we know what we will…
Numeric Literals and Binary Literals in C# 7.0
Numeric Literals When working with literals of a numeric type having large and complex number will be hard to read. For example, if we are assigning a large integer to…
Copying events from one JavaScript Element to another JavaScript Element
Problem Statement We need to bind specific events like click, onchange of one element to another element due to there could be a situation where we cannot access the methods which are calling an event handler of…
Safely Storing Sensitive Configuration Data in .NET Core
Problem Statement There could be a situation where the application will use some sensitive data such as Payment Gateway live credentials and client don’t want to expose the data to any of…
Understanding Produces and Consumes Attribute in MVC 6
Produces and Consumes Attributes are newly introduced in MVC 6 ( Core) to control the content negotiation. What is Content Negotiation? The process of picking the correct output format is known as Content Negotiation. Generally, Frameworks will…
Time to Upgrade from .NET core 2.0 to .NET core 2.1
It's time to upgrade your existing .NET core application running on to .NET core as .NET core support from Microsoft will be ended on 1st October 2018. Why? .NET Core was…