Skip to main content
snippets
S
nippets
C#
Snippets
Date
•
Title
Working with Multiple Wait Handlers
C#
5 years ago
async
csharp
manualresetevent
threading
threadpool
waitall
waithandle
Safe ConcurrentDictionary Implementation
C#
5 years ago
concurrency
concurrentdictionary
csharp
dictionary
threading
threadsafe
Disposable Abstract Class
C#
5 years ago
abstract
class
csharp
dispose
wrapper
Cancelling a Task Using a Cancellation Token
C#
5 years ago
cancel
cancellation
cancellationtokensource
csharp
examples
task
threading
token
C# Array Extensions
C#
5 years ago
array
csharp
extensions
ienumerable
utils
Atomic Counter Class
C#
5 years ago
class
count
csharp
decrement
increment
interlocked
threading
threadsafe
Rotate PDF Pages 90 Degrees
C#
5 years ago
csharp
itextsharp
pdf
rotate
Show Currently Installed .NET Framework Version and OS
C#
5 years ago
csharp
dotnet
framework
install
os
version
windows
Simple Token Replacement Method in C#
C#
5 years ago
csharp
helpers
replace
string
template
token
utils
BenchmarkDotNet Usage Examples
C#
5 years ago
benchmark
benchmarkdotnet
csharp
dotnet
dotnetcore
library
performance
testing
Assertion Helper Class
C#
5 years ago
arguments
assert
csharp
exception
guard
helpers
parameter
type
utils
validation
HttpHeaders Class Extensions
C#
5 years ago
csharp
extensions
headers
http
httpheaders
tryparse
Anonymize IP Address
C#
5 years ago
anonymize
csharp
ip
network
security
C# Stream Helper Class
C#
5 years ago
csharp
file
helpers
stream
string
utils
How to Ping a Host in C#
C#
5 years ago
async
csharp
examples
network
ping
Using Data Annotations for Model Validation
C#
5 years ago
csharp
data-annotations
examples
model
validation
Object Extensions
C#
5 years ago
csharp
extensions
helpers
object
reflection
type
utils
Dynamically Loaded Json NetSerializer
C#
5 years ago
assembly
csharp
dotnet
dynamic
examples
json
reflection
CSharp XMLDocument: Prevent External XML Entity Injection
C#
6 years ago
csharp
examples
owasp
security
xml
Strip Trailing Slashes
C#
6 years ago
csharp
helpers
path
remove
slash
string
strip
uri
url
utils
«
1
2
3
4
5
6
7
8
9
10
11
»
Last
More »