Author Archives: saikk - Page 5
Getting UserName from JWT Token At Web API
It is a general requirement that, once the user is validated and received token and redirected to actual API to fetch or post the data. Here, if we want to…
Generate Random Password
It is a common requirement across most of the online application to generate some random password while registering a new user or for any password reset request in case forgetting an…
How to merge or combine multiple files
If you have any requirement to merge multiple files (like .txt, .sql) of similar file types into a single consolidated file. For example, we might have many .SQL files and…
Sorting JSON Array
There could be a situation where we need to sort the given complex JSON Array object based on the available column/properties. Following is the sample code which demonstrates how can…
Converting Byte Array to a File
Hi following is the two approaches for converting an existing byte array to the desired file in C# language. Approach-1: Low-level coding public void Convert() { FileStream stream = byte…
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…







