Snipp
set
Snipps
Sets
New
Create Snipp
Create Set
Login
Deutsch
English
Login
Snipp
.NET
.NET Class Library
Task Class
Thread Class
Uri Class
URI Example
URI Types
Uri.AbsoluteUri vs. Uri.OriginalString
Add IConfiguration to the service collection
App Types
Asynchronous programming
Running Async Code in C# Console Applications: A Practical Guide
When to use Task.Delay, when to use Thread.Sleep?
Task.Delay (async/await)
Thread.Sleep (synchronous)
Auto-Generate Logging Scopes in .NET Background Services
Choosing the Right Lifetime for Services
Configuration in .NET
Data & Serialization
Serialization
Avoid Exceptions When Accessing Properties on a JsonElement
Dependency Injection with custom DependencyProvider
Effective Logging Practices in C# Methods
Get Methods with Custom Attribute
HTTP & Networking
HttpClient
Building Reliable HTTP Client Services in .NET: A Practical Guide
Designing a Clean Exception Surface for Reusable .NET Libraries
How to Log HTTP Failures Across Multiple Exception Types
Why Custom Exceptions Create Stable and Reliable APIs
HttpClient Testing & Internals
Testing HttpClient Handlers in ASP.NET Core
The Cause: Why You Cannot See Handlers Using Normal Testing
The Problem: Validating HttpClient Handlers in ASP.NET Core
The Solution: Using Reflection to Inspect HttpClient Handlers
Language & Runtime
Collections & Memory Behavior
Avoiding List Reference Issues in .NET: Making Independent Copies
Direct List Assignment Issue
Making Independent Copies Solution
Migration & Versions
.NET 6.0 Migration
Error: EISDIR: illegal operation on a directory, open '/home/site/wwwroot/wwwroot/Identity/lib/bootstrap/LICENSE'
.NET Versions
Prompting User for valid Input in Console Application
Protecting Sensitive Strings: Redaction vs. Masking
Masking — Obscuring Data While Preserving Length
Redaction — Showing Partial Data Safely
Registering Multiple Implementations in Dependency Injection
Remove Extra White Spaces
Safe Token Logging in .NET Applications
Safely Combine URLs from Strings in .NET
Testing in .NET
How to Properly Use Assert.Contains for Substring Checks in .NET
How to Test a Custom DelegatingHandler in .NET
InternalsVisibleTo
Test Exceptions
Tooling & CLI
.NET CLI commands
UI & Desktop
DataGridView
Change DataGridView Cell Color
Find a Row in DataGridView Based on Value
How To Add Rows And Columns In DataGridView
Add new Snipp
.NET
by Jerry
App Types
Referenced in:
Add to your own Set
Add
Comments
About
-
Privacy
-
Contact
Add to Set
Add your own Set.
Share '
' on
Twitter
Facebook
Linkedin
Email
Actions
Share
Add to Set
Open
_SnippMenuActionSheet: System.Security.Claims.ClaimsIdentity, ,
Menu
Sets
Feed
Snipp
Snipps
Add Snipp
Successfully added
OK
.NET
Add new Snipp
Recent Sets
Windows
C#
AI
HTML
Visual Studio
Microsoft Entra
CSS
Software Development
.NET
EF Core
Popular Snipps
Snipp
Migration & Versions
Snipp
UI & Desktop
Snipp
App Types
Snipp
Tooling & CLI
Snipp
HttpClient Testing & Internals
Snipp
HTTP & Networking
Snipp
Data & Serialization
Snipp
Collections & Memory Behavior
Snipp
Language & Runtime
By using this site you agree to the privacy and cookie use policy.
Learn More
.
Accept
.NET
Error: EISDIR: illegal operation on a directory, open '/home/site/wwwroot/wwwroot/Identity/lib/bootstrap/LICENSE'
Find a Row in DataGridView Based on Value
Change DataGridView Cell Color
How To Add Rows And Columns In DataGridView
Avoiding List Reference Issues in .NET: Making Independent Copies
Direct List Assignment Issue
Making Independent Copies Solution
Testing in .NET
InternalsVisibleTo
.NET Versions
Test Exceptions
Get Methods with Custom Attribute
.NET Class Library
Uri Class
URI Types
URI Example
Uri.AbsoluteUri vs. Uri.OriginalString
Serialization
Remove Extra White Spaces
Asynchronous programming
When to use Task.Delay, when to use Thread.Sleep?
Task Class
Task.Delay (async/await)
Thread Class
Thread.Sleep (synchronous)
.NET CLI commands
Configuration in .NET
Dependency Injection with custom DependencyProvider
Add IConfiguration to the service collection
Prompting User for valid Input in Console Application
Effective Logging Practices in C# Methods
HttpClient
DataGridView
.NET 6.0 Migration
Running Async Code in C# Console Applications: A Practical Guide
Safe Token Logging in .NET Applications
Protecting Sensitive Strings: Redaction vs. Masking
Redaction — Showing Partial Data Safely
Masking — Obscuring Data While Preserving Length
How to Properly Use Assert.Contains for Substring Checks in .NET
How to Test a Custom DelegatingHandler in .NET
Avoid Exceptions When Accessing Properties on a JsonElement
Safely Combine URLs from Strings in .NET
Auto-Generate Logging Scopes in .NET Background Services
Choosing the Right Lifetime for Services
Registering Multiple Implementations in Dependency Injection
Building Reliable HTTP Client Services in .NET: A Practical Guide
Why Custom Exceptions Create Stable and Reliable APIs
How to Log HTTP Failures Across Multiple Exception Types
Designing a Clean Exception Surface for Reusable .NET Libraries
Testing HttpClient Handlers in ASP.NET Core
The Problem: Validating HttpClient Handlers in ASP.NET Core
The Cause: Why You Cannot See Handlers Using Normal Testing
The Solution: Using Reflection to Inspect HttpClient Handlers
Language & Runtime
Collections & Memory Behavior
Data & Serialization
HTTP & Networking
HttpClient Testing & Internals
Tooling & CLI
App Types
UI & Desktop
Migration & Versions
Add new Snipp to this Set
Register
Add Set
Settings
Login
Comments