All Posts

This post contains two simple methods to convert byte array to hexadecimal string in C# and vice versa.
How to convert byte array to a hexadecimal string in C#, and vice versa?

To get int value from enum in C#, cast the enum to int
Get int value from Enum in C# with examples

We can get a list of all containers in docker using docker container list or docker ps commands.
List all containers in Docker command

To copy files or folders from host to docker container or docker container to host use docker cp command
Copying files/folders from host to Docker container & docker container to host

To Convert string to enum in C# use Enum.TryParse and Enum.Parse methods
How to convert string to enum in C#

To add an HTML button that acts as a link to other HTML, we can use the button inside HTML form or style an anchor link as a button or …

To check if a string is null or empty or undefined use the following code snippet if(!emptyString){ // String is empty }

In SQL server, To write if then else in SQL select query we can use SELECT CASE statement (In all versions), SELECT IIF logical …

To create GUID or UUID in JavaScript we can use Math.Random() or ES6 crypto API getRandomValues method.GUID or UUID generated by …

In javascript, we can check if an object is empty or not by using JSON.stringify, Object.keys (ECMA 5+),Object.entries (ECMA 7+)