In C#, enumerations, or enums, are a special data type used to limit the possible values of a given variable. Constraining data is useful for ensuring the validity of values as they are used throughout the program. ... Read more →
Master C# - From Beginner to Building Real Apps
Start coding today with hands-on C# tutorials. From your first console app to advanced techniques, build a solid foundation in modern .NET development.
Begin with the basics (variables, loops, methods). Then progress to object-oriented programming, LINQ, async/await, and more. Each tutorial includes practical examples you can run immediately. By the end, you'll confidently build real-world C# applications.
In this tutorial, you will learn how to use the ForEach method on Lists and other LINQ collections. This allows you to compactly write, on a single line of code, that which otherwise would take at least four lines. ... Read more →
The Language Integrated Query (LINQ) syntax is a powerful way to work with collections in C#. In this tutorial, you will learn how to use LINQ to filter data from C# lists. You will also learn how to chain LINQ queries together in order to return precisely the data you ... Read more →
The Language Integrated Query (LINQ) is a syntax that allows developers to sort, filter, and perform other aggregate operations on collections in C#. This tutorial will introduce you to LINQ and teach you how to use the OrderBy method to sort your data. ... Read more →
Collections in C# are similar to arrays, but with added benefits. Perhaps most importantly, they enable the developer to take advantage of rich sorting, filtering, and aggregation features available in the .NET Core framework through LINQ queries. ... Read more →
In this tutorial, you will learn how to use the StreamReader object to read a specific line number of a text file in your C# applications. ... Read more →