
Return Response Codes from ASP.NET Action Result Using StatusCodes Enum
The Microsoft.AspNetCore.Http.StatusCodes?enum has many response codes. Please see below for an example to return one of the values from the
The Microsoft.AspNetCore.Http.StatusCodes?enum has many response codes. Please see below for an example to return one of the values from the
Visual Studio allows you to communicate with fellow developers about a piece of code. It lets you add a compiler
You can use the SHA1Managed class and compute hash for an input string as shown below. It is done in
Oftentimes, the input is an integer that has to be converted to the appropriate enum value. All we have to
The BitConvertor class can convert a byte array to a string in C#, as shown below: string convertedValue = BitConverter.ToString(byteArray).Replace(“-“,””);
We often create console applications to write test code or to do quick experiments in Visual Studio because they are
There are lot of .NET helper assemblies that help you represent datetime in more readable formats, such as yesterday, 5
You can use HttpResponse’s IsClientConnected property to figure out if the connection is still alive. Based on the value, you
We sometimes forget to turn debug to false or turn off tracing. You only need to set the following configuration