Blog
Page 523 of my articles, tutorials, and thoughts
Latest Articles
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
async/await - when to return a Task vs void?
📝 Hey there tech enthusiasts! 👋 Have you ever wondered about the async/await keywords in C# and when to return a Task vs void? 🤔 Well, today we're diving deep into this topic to help you understand the best approach to handle async methods. So let's get
LEFT OUTER JOIN in LINQ
# Performing a Left Outer Join in C# LINQ So you've encountered the need to perform a left outer join in C# LINQ, but you're not quite sure how to go about it. Don't worry, I've got you covered! In this blog post, I'll walk you through a common problem re
How do I get the color from a hexadecimal color code using .NET?
🖥️💡 How to Get Color from a Hexadecimal Color Code in .NET 💡🖥️ So, you've stumbled upon a hexadecimal color code like #FFDFD991 and now you're wondering how on earth you can turn this code into an actual color using .NET. Fear not, my fellow developer
jQuery and AJAX response header
## 🤔 Understanding jQuery AJAX Response Headers So you've got this jQuery AJAX call and you're trying to handle a response that comes from the server in the form of a 302 redirect. You want to take this redirect and load it in an iframe. But there's a pr
C# difference between == and Equals()
# Exploring the Difference Between == and Equals() in C# 👥 So you're writing some C# code, and you encounter a situation where using `==` returns `false`, while `.Equals()` returns `true`. 🤔 What's going on here? Why are these two seemingly similar appr
How to ignore a property in class if null, using json.net
# How to ignore a property in class if null, using json.net 🤔 Are you struggling with how to ignore a property in a class if it's null when serializing it to JSON using [Json.NET](http://www.newtonsoft.com/json)? Don't worry, we've got you covered! In th
How to check if a number is a power of 2
# How to Check If a Number is a Power of 2: The Ultimate Guide! 💪🔢 Are you tired of scratching your head when trying to figure out if a number is a power of 2? We've all been there! But worry no more. In this guide, we'll tackle this problem head-on and





