Blog

Page 168 of my articles, tutorials, and thoughts

Latest Articles

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: **

Cover Image for Better way to check if a Path is a File or a Directory?
c#directoryfile.netpath

Better way to check if a Path is a File or a Directory?

Published on September 2, 2023

šŸ“ **Title: Better way to check if a Path is a File or a Directory?** šŸ“‚šŸ“šŸ¤” Introduction: Hey tech adventurers! šŸ‘‹ Are you struggling to determine whether a path is a file or a directory in your code? šŸ¤” Don't worry, you're not alone! Many developers hav

Cover Image for Is DateTime.Now the best way to measure a function"s performance?
c#datetime.netperformance

Is DateTime.Now the best way to measure a function"s performance?

Published on September 2, 2023

# šŸ•’ Is DateTime.Now the best way to measure a function's performance? šŸ¤” Are you trying to find out where your code is slowing down? šŸ¤” Need a reliable way to measure the performance of your functions? ā±ļø Look no further! In this blog post, we'll dive in

Cover Image for Deserialize JSON object into dynamic object using Json.net
c#.net

Deserialize JSON object into dynamic object using Json.net

Published on September 2, 2023

# Deserialize JSON Object into Dynamic Object using Json.net šŸ”„ So you want to deserialize a JSON object into a dynamic object using Json.net, huh? Well, you've come to the right place! In this guide, we will address this common issue, provide easy soluti

Cover Image for Difference between text and varchar (character varying)
stringtypes

Difference between text and varchar (character varying)

Published on September 2, 2023

# Text vs Varchar: Unraveling the Mystery šŸ“š Have you ever wondered what's the difference between the `text` and `varchar` (character varying) data types in PostgreSQL? šŸ¤” Don't worry, you're not alone! Many developers struggle to understand the nuances b

Cover Image for Difference between Math.Floor() and Math.Truncate()
math.net

Difference between Math.Floor() and Math.Truncate()

Published on September 2, 2023

# Math.Floor() vs Math.Truncate(): What's the Deal? šŸ¤” Are you a math whiz struggling to wrap your head around the differences between `Math.Floor()` and `Math.Truncate()` in .NET? Don't worry, you're not alone! It's a common question that often leads to

Cover Image for How do you unit test private methods?
.netprivatetddunit-testing

How do you unit test private methods?

Published on September 2, 2023

# How to Unit Test Private Methods: A Developer's Guide šŸ‘Øā€šŸ’» So, you're building a class library with some public and private methods, but you're wondering how to effectively unit test those private methods. You're in luck! In this blog post, we will exp