Start Debugging

Tag: csharp

72 posts · Page 6 of 8

2023-06-11 csharpdotnet
How to start programming with C#
A beginner's guide to getting started with C# programming, from setting up Visual Studio to writing your first program and finding learning resources.
2023-06-10 csharp
How to switch to C# 12
Fix C# 12 language version errors by updating your target framework to .NET 8 or setting LangVersion in your .csproj file.
2023-06-10 csharp
What’s new in C# 12
An overview of new features in C# 12, including primary constructors, default lambda parameters, collection expressions, inline arrays, and more.
2023-05-09 csharp
C# 12 – Default values for parameters in lambda expressions
C# 12 lets you specify default parameter values and params arrays in lambda expressions, just like in methods and local functions.
2023-03-21 csharp
C# 11 – Generic attributes
Learn how to define and use generic attributes in C# 11, including restrictions on type arguments and common error messages.
2023-03-18 csharp
C# 11 – file access modifier & file-scoped types
Learn how the C# 11 file access modifier restricts a type's scope to the file in which it is declared, helping avoid name collisions with source generators.
2023-03-17 csharp
C# 11 – Interpolated raw string literal
Learn how to use interpolated raw string literals in C# 11, including escaping braces, multiple $ characters, and conditional operators.
2023-03-15 csharp
C# 11 – Raw string literals
Learn how to use C# 11 raw string literals to include whitespace, new lines, and embedded quotes without escape sequences.
2023-03-14 csharp
How to switch to C# 11
Fix the 'Feature is not available in C# 10.0' error by switching to C# 11 via target framework or LangVersion in your .csproj file.
2023-03-11 csharp
C# – Best way to Throw Exception If Null
Use ArgumentNullException.ThrowIfNull in .NET 6+ for concise null checks, or use throw expressions in C# 7+ for older frameworks.
Prev Next