Blog

Page 186 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for A generic list of anonymous class
c#generics.net

A generic list of anonymous class

Published on September 2, 2023

# 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

Cover Image for What are your favorite extension methods for C#? (codeplex.com/extensionoverflow)
c#.net

What are your favorite extension methods for C#? (codeplex.com/extensionoverflow)

Published on September 2, 2023

# šŸ’» 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

Cover Image for Passing arguments to C# generic new() of templated type
c#generics.net

Passing arguments to C# generic new() of templated type

Published on September 2, 2023

# 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

Cover Image for C# getting the path of %AppData%
c#.netpath

C# getting the path of %AppData%

Published on September 2, 2023

# šŸ“ 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

Cover Image for Why does Math.Round(2.5) return 2 instead of 3?
.netrounding

Why does Math.Round(2.5) return 2 instead of 3?

Published on September 2, 2023

# 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

Cover Image for Internal vs. Private Access Modifiers
access-modifiersc#.netprivate

Internal vs. Private Access Modifiers

Published on September 2, 2023

✨ 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

Cover Image for Equivalent of Math.Min & Math.Max for Dates?
.net

Equivalent of Math.Min & Math.Max for Dates?

Published on September 2, 2023

šŸ“ **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

Cover Image for ArrayList vs List<> in C#
arraylistc#genericslist.net

ArrayList vs List<> in C#

Published on September 2, 2023

šŸ“ **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

Cover Image for Why can"t I use the "await" operator within the body of a lock statement?
async-awaitc#.net

Why can"t I use the "await" operator within the body of a lock statement?

Published on September 2, 2023

šŸ“ **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: **

Blog | Matheus Mello