Blog
Page 470 of my articles, tutorials, and thoughts
Latest Articles
Best practice to call ConfigureAwait for all server-side code
# Best practice to call ConfigureAwait for all server-side code š¤ Are you working with server-side code that involves asynchronous functions? Do you want to optimize the performance of your code while avoiding potential problems? Then you might have come
When to use static classes in C#
# When to Use Static Classes in C# Static classes in C# can be very useful in certain scenarios. They provide a way to organize methods that are not associated with specific objects, and can make your implementation simpler and faster. However, it's impor
SqlException from Entity Framework - New transaction is not allowed because there are other threads running in the session
# šØ Solving the "New transaction is not allowed because there are other threads running in the session" error šØ If you're encountering the `SqlException` with the message "New transaction is not allowed because there are other threads running in the ses
C# Interfaces. Implicit implementation versus Explicit implementation
š **C# Interfaces: Implicit Implementation vs Explicit Implementation** Have you ever wondered about the differences between implementing interfaces implicitly and explicitly in C#? š¤ In this blog post, we will dive into this question and provide easy s
How do I make a textbox that only accepts numbers?
š Title: "How to Create a Number-Only Textbox in your Windows Forms App" Introduction: š Hey there! Are you struggling to figure out how to make a textbox in your Windows Forms app that only accepts numbers? Look no further, because we've got you covere
How do you do a deep copy of an object in .NET?
# Title: "Mastering the Art of Deep Copy in .NET: A Hassle-Free Guide šÆ" --- ## Introduction So, you want to perform a **deep copy** of an object in the .NET world, huh? You've come to the right place! š Java may have made it easy, but worry not, my
Func delegate with no return type
# š¤ Func Delegate with No Return Type? Can It Be Done? So you're working with C# and you've heard about the handy `Func` delegates that can be used with methods to return a value. But what about those times when you need to work with methods that don't r
Difference between InvariantCulture and Ordinal string comparison
# Understanding the Difference between InvariantCulture and Ordinal String Comparison š„š <p>So, you want to compare two strings for equality in C#, but you're not sure whether to use InvariantCulture or Ordinal comparison. Fear not, my fellow tech enthu
Calculate the execution time of a method
# Calculating the Execution Time of a Method: A Simple Guide Are you curious about how long a particular method takes to execute in your code? Running time calculations can help you identify performance bottlenecks, optimize your code, and ultimately impr
Adding values to a C# array
# Adding Values to a C# Array: A Beginner's Guide āØš» Are you new to C# and struggling to add values to an array? Don't worry, we've got you covered! In this blog post, we'll walk you through the process step by step, addressing common issues and providin