Author Archives: saikk - Page 3
Creating Trimmed Self Contained Single Executable using .NET Core 3.0
In .NET Core, we have a feature to get the runtime components and dependency components in the same folder where the application executable file resides. With this, the advantage is,…
Interview: Write Palindrome Program
This is the most common program which will be asked for a fresher to the programming world. Following are some of the steps to achieve a Palindrome program algorithm Read…
C# 8.0: Static Local Functions
Local Functions are introduced in C# , you can read more about it here. In C# , these Local Functions are improvised so that it will work with more performance-driven…
C# 8.0: Enhanced Using Declaration
As we all aware using keyword is been used to ensure that the Dispose() method will be called on a type object implemented IDisposableinterface when it reaches declared block as shown…
C# 8.0: Nullable Reference Types
As we all ware of Nullable Types feature in C# also known as Nullable Value Types which was introduced since C# version. The advantage of this type is to avoid…
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…