Strings in C# – What‘s New, Explained with Code Examples

Strings are a fundamental data type in C# and .NET, representing immutable sequences of Unicode characters. They are used pervasively in virtually every application and domain, from displaying text in the UI, to storing user input and application data, to communicating with databases and APIs. As such, having an expressive, convenient, and flexible way to…

Mastering Advanced C# Concepts: An In-Depth Guide

As a C# developer, you‘ve likely gotten comfortable with the basics of the language. However, to truly excel in your career, it‘s crucial to dive into the more advanced features and concepts that C# has to offer. In this comprehensive guide, we‘ll explore essential topics like delegates, events, generics, asynchronous programming, LINQ, attributes, reflection, and…

How to Remove an Item from a List in C#: The Ultimate Guide

As a C# developer, you‘ll often find yourself working with collections of objects. One of the most commonly used collection types in C# is the List<T>. Lists provide a convenient way to store and manipulate groups of related items. Removing elements from a list is a fundamental operation that every C# programmer should know. Whether…

How to Convert a String to an Int in C# – Tutorial with Example Code

Converting a string representation of a number to an actual integer type is an extremely common task in programming. It comes up in a wide variety of scenarios such as: Handling user input from a text field, command line, etc. Parsing numeric values from a text file or CSV Extracting numbers from a larger string…

How to Convert a String to an Integer in C# – with Code Examples

As a C# developer, you‘ll frequently encounter situations where you need to convert a string value to an integer. Whether you‘re working with user input, reading data from a file, or processing information from a database, strings often need to be converted to numeric types like integers for performing mathematical operations or comparisons. Fortunately, C#…

Filtering in C# – A Comprehensive Guide with Code Examples

Filtering data is a critical skill for modern application development. Whether you‘re building a web app, mobile app, or data analysis tool, you often need to extract specific subsets of information from larger datasets based on certain criteria. As a full-stack C# developer, you may need to filter data at multiple layers of your application…

Create a C# Application from Start to Finish – Complete 24-Hour Course

Have you ever wanted to build a fully-functional, real-world application from start to finish? Look no further than this free 24-hour C# course from Tim Corey on the freeCodeCamp YouTube channel. By the end, you‘ll have created a tournament tracker application using industry best practices that‘s suitable for launch. Whether you‘re a C# beginner or…

Creating Robust REST APIs with .NET 5 and C#: The Ultimate Guide

REST APIs have become the backbone of modern web applications, powering the communication between frontend and backend services. If you‘re a .NET developer looking to build scalable and maintainable APIs, .NET 5 and C# provide a powerful toolset to achieve this. In this in-depth guide, we‘ll walk through the process of designing, building, testing, and…

C# Coding Best Practices – Coding Conventions with Examples

As a full-stack developer with over a decade of experience writing production C# code, I‘ve seen firsthand how coding conventions and best practices can make or break a project. Consistency, readability, and maintainability are essential for any codebase, especially when working on a team or maintaining software long-term. In this in-depth guide, we‘ll explore the…