C# Difference Between == and Equals
In C#, “==” and “Equals” are used to compare values of variables or objects. The choice between the two operators depends on the type of…
How To Deserialize JSON from File C#? Single Item and Collection
In this article, I will demonstrate how to deserialize JSON from a file in C# for both a single item and a collection. I will…
How to Fix xUnit Test not Running Error – “Test project does not reference any .NET NuGet adapter”
Today I faced that Visual Studio 2022 does not run xUnit tests in the Test Explorer. And in the output I found the next error:…
Collapse and Uncollapse Sections of Code in Visual Studio Code – Shortcuts
Here is the list of shortcuts to fold or collapse sections of code in Visual Studio Code: Collapse current section(where the cursor is active):: Ctrl…
How to Downgrade Node Version in Windows 10? NVM Utility
Sometimes it may be necessary to downgrade Node to an older version for compatibility or stability reasons. For example, I faced the “ReferenceError: primordials is…
Add Format Selection In Context Menu Visual Studio 2022
Here I showed how to format code using shortcuts in Visual Studio 2022. But especially I can forget hotkey and I prefer to have a…
How to Hash, Salt and Store Password in C#?
Passwords are the most commonly used method for authenticating users and are therefore a primary target for attackers. One effective way to protect passwords is…
What are the Differences Between Visual Studio Code and Visual Studio?
Visual Studio Code and Visual Studio are two of the most popular editors used by developers today. Both tools are powerful, feature-rich and offer a…
How To Select Multiple Records using the List of Id’s with LINQ? Entity Framework
It is not a rare situation when it is necessary to make a selection of elements from the database based on the list of IDs….
How to Generate SQL Scripts for Previous Versions of MS SQL?
There are situations when you need to generate SQL scripts for earlier versions of the database server. For example, you may have 2019 installed in…
How to Change Visual Studio Theme? Change to Dark Theme
The Visual Studio allows changing themes. The default theme is “Blue”, let’s switch it to the “Dark” theme. To change the theme in Visual Studio…
How to use localeCompare() in JavaScript?
The localeCompare() method is a built-in JavaScript function that compares two strings in a case-sensitive or case-insensitive manner, based on the current locale. It returns…
How to do Case-Insensitive String comparison in JavaScript?
The simplest method for comparing strings without considering case in JavaScript is to convert both strings to either lowercase or uppercase using the toLowerCase() or…
How to Create a Database Schema in MS SQL?
In a database, the schema is the structure that defines the organization of data. It describes the database objects, such as tables, views, stored procedures,…
Delete Duplicate Rows in Table without Primary Key
In the previous article, I showed a way how to delete duplicate rows when Primary Key exists in the table. Now I want to demonstrate…