Author Archives: saikk - Page 4
Understanding Persistence Ignorance Principle
Before understanding what is Persistence Ignorance principle, we need to understand the difference between DTO and POCO. As a programmer we should know about DTOs represent as Data Transfer Objects…
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond – SMTP Client
Error Message A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond…
Asynchronous Main Method in C# 7.1
As we are aware all .NET based applications will be having an entry point and .NET runtime will load and start executing the application from here. Since C# , we…
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…
BasicHttpBinding vs WsHttpBinding vs WebHttpBinding in WCF
webHttpBinding is the REST-style binding, where you basically just hit a URL and get back a truckload of XML or JSON from the web service basicHttpBinding and wsHttpBinding are two SOAP-based bindings which is…