Blog

Page 524 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for How to determine if a type implements an interface with C# reflection
c#reflection

How to determine if a type implements an interface with C# reflection

Published on September 2, 2023

# šŸ“ Tech Talk: How to Determine if a Type Implements an Interface with C# Reflection šŸ¤”šŸ’” Hello tech enthusiasts! Today, we are diving into the intriguing world of C# reflection to address a common issue that developers often face: determining if a type

Cover Image for Why catch and rethrow an exception in C#?
c#exceptiontry-catch

Why catch and rethrow an exception in C#?

Published on September 2, 2023

# Why Catch and Rethrow an Exception in C#? šŸ¤”šŸ’„ Exception handling is a crucial aspect of writing robust and reliable code in any programming language, including C#. While the code snippet you mentioned appears to be redundant, there are situations where

Cover Image for RedirectToAction with parameter
c#

RedirectToAction with parameter

Published on September 2, 2023

# šŸš€ How to Redirect to an Action with a Parameter in ASP.NET MVC So, you're facing a challenge when it comes to redirecting to an action with a parameter in your ASP.NET MVC application. Fear not, my tech-loving friend, for I have some easy solutions to

Cover Image for Use LINQ to get items in one List<>, that are not in another List<>
c#

Use LINQ to get items in one List<>, that are not in another List<>

Published on September 2, 2023

# Using LINQ to Get Items in One List that are Not in Another List Are you looking for a way to use LINQ to find items in one List, but not in another List? You're in luck! LINQ provides a simple and elegant solution to this problem. In this blog post, we

Cover Image for How to make "case-insensitive" query in Postgresql?

How to make "case-insensitive" query in Postgresql?

Published on September 2, 2023

## How to Make Your Queries Case-Insensitive in PostgreSQL Are you tired of writing multiple queries just to account for case differences? In PostgreSQL, you can make your queries case-insensitive without any hassle. šŸŽ‰ No more duplicating code or wasting

Cover Image for Embedding DLLs in a compiled executable
c#merge.net

Embedding DLLs in a compiled executable

Published on September 2, 2023

šŸ“ **Hey Techies!** šŸ–„ļø Want to know if you can embed a pre-existing DLL into a compiled C# executable? šŸ¤” Look no further! šŸ’” We've got you covered with this easy-to-understand guide. Let's dive in! šŸ’Ŗ ## Embedding DLLs in a Compiled Executable - Is it P

Cover Image for How do I get the current username in .NET using C#?
c#.net

How do I get the current username in .NET using C#?

Published on September 2, 2023

šŸ‘‹ Hey there, tech enthusiasts! šŸ‘©ā€šŸ’»šŸ‘Øā€šŸ’» If you've ever found yourself wondering how to grab the current username in .NET using C#, you've come to the right place. šŸŽ‰ In this blog post, we'll dive into this common issue head-on and equip you with easy s

Cover Image for Proper way to initialize a C# dictionary with values
c#dictionary

Proper way to initialize a C# dictionary with values

Published on September 2, 2023

# Proper way to initialize a C# dictionary with values šŸ“– Welcome to my tech blog! Today, we are diving into the world of C# and exploring the proper way to initialize a dictionary with values. šŸš€ ## Understanding the problem You may have encountered an

Cover Image for What is the { get; set; } syntax in C#?
c#

What is the { get; set; } syntax in C#?

Published on September 2, 2023

šŸ“šŸ’» Blog Post: Demystifying the { get; set; } Syntax in C# ✨🌟 Welcome to my tech blog! In today's post, we will unravel the mystery behind the { get; set; } syntax in C#. If you've stumbled upon this perplexing code snippet while diving into ASP.NET MVC

Blog | Matheus Mello