How to Deep Clone an Object in C#?
Some time ago I ran into a problem that I need to make a complete copy of the C# object. Before I show you how to deep-copy an object. I want to briefly describe how … Read more
Just The Programming Blog
Some time ago I ran into a problem that I need to make a complete copy of the C# object. Before I show you how to deep-copy an object. I want to briefly describe how … Read more
A few weeks ago, I encountered an issue with SyncFusion SFGrid where it was rendering not the last request that was sent, but the last request that was completed. I was using a custom DataAdapter … Read more
Enums are a powerful feature of C# that allow you to define a set of named constants. And it can be a challenge to enumerate an Enum in C#. In this article, I will explore … Read more
In C#, “==” and “Equals” are used to compare values of variables or objects. The choice between the two operators depends on the type of data you are comparing. For example, when comparing two strings … Read more
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 use the standard .NET namespace ‘using System.Text.Json’. For my examples, … Read more
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 ‘Format Selection’ in the context menu. Check these steps to … Read more
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 to hash and salt them. In this article, I will … Read more
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. You can use the ‘Where‘ method in LINQ and ‘Contains‘ … Read more
ChatGPT is an artificial intelligence(AI) platform that allows you to ask a question and gives you an answer. ChatGPT is an AI chatbot trained to effectively have dialogue. It keeps dialog with you knowing the … Read more
There are two quick ways to sort List<T> based on the property of the complex C# object. For example, let’s sort this person list by DateOfBirth in ascending and descending order. Sort List Using OrderBy … Read more