Start Debugging

Tag: csharp

77 posts · Page 7 of 8

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.
2020-11-20 csharp
Get Embedded Resource Stream in .NET Core
Learn how to retrieve an embedded resource stream in .NET Core by understanding how resource names are composed and using GetManifestResourceStream.
2020-11-13 csharpxamarin-forms
How to use appsettings.json with Xamarin.Forms
Learn how to use appsettings.json configuration files with Xamarin.Forms by embedding the file as a resource and building an IConfiguration object.
2020-11-04 csharpsignalrxamarin-forms
How to publicly expose your local SignalR service for consumption by mobile clients using ngrok
Use ngrok to publicly expose your local SignalR service so mobile clients can connect without network configuration or SSL workarounds.
2020-05-01 csharp
C# using var (using declaration)
Learn how C# 8 using declarations (using var) simplify resource management by eliminating extra curly braces and indentation for IDisposable objects.
2020-04-05 csharp
C# 8.0 Null-coalescing assignment ??=
Learn how the C# 8.0 null-coalescing assignment operator (??=) works, with practical examples including caching and conditional assignment.
Prev Next