Blog
Page 186 of my articles, tutorials, and thoughts
Latest Articles
A generic list of anonymous class
# Title: "Mastering the Art of Adding Anonymous Classes to Generic Lists in C#" š„šÆ Calling all C# developers! Are you tired of struggling with adding anonymous classes to generic lists? Look no further! In this blog post, we will delve into the ins and
What are your favorite extension methods for C#? (codeplex.com/extensionoverflow)
# š» My Favorite Extension Methods for C# š Are you tired of writing repetitive code in C#? Do you want to enhance your programming experience and make your code more readable and concise? Look no further! In this blog post, I will share with you my favo
Passing arguments to C# generic new() of templated type
# Passing arguments to C# generic new() of templated type Have you ever encountered the error message "'T': cannot provide arguments when creating an instance of a variable" when trying to create a new object of type T via its constructor in C#? Don't wor
C# getting the path of %AppData%
# š C# Getting the Path of `%AppData%`: A Complete Guide If you've encountered the exception message "Could not find a part of the path" while trying to access a file using the `%AppData%` variable in C#, don't worry! In this blog post, we'll discuss com
Why does Math.Round(2.5) return 2 instead of 3?
# Why does `Math.Round(2.5)` return 2 instead of 3? š¤ You're not alone if you've been puzzled by the result of `Math.Round(2.5)` in C#, expecting it to be 3 but getting 2 instead. Let's dive into the mysterious world of rounding numbers and understand wh
Internal vs. Private Access Modifiers
⨠The Battle of Access Modifiers: Internal vs. Private š”ļø Have you ever found yourself confused about the difference between the `internal` and `private` access modifiers in C#? š¤ Fear not, fellow tech enthusiasts, for we are here to shed some light on
Equivalent of Math.Min & Math.Max for Dates?
š **BLOG POST** š” **Title: The Quickest Way to Find the Minimum and Maximum Dates** š **Introduction** š Have you ever wondered how to find the minimum or maximum value between two dates? Perhaps you're familiar with `Math.Min` and `Math.Max` functi
ArrayList vs List<> in C#
š **ArrayList vs List<> in C#: Understanding the Differences** Are you confused about the differences between `ArrayList` and `List<>` in C#? š¤ Well, fear not! We're here to demystify this common question and help you understand the nuances between thes
Why can"t I use the "await" operator within the body of a lock statement?
š **Blog Post: Why can't I use the 'await' operator within the body of a lock statement?** š Hey there, tech enthusiasts and programming wizards! šØāš» In today's blog post, we're going to dive deep into the question that has puzzled many developers: **






