Skip to main content
snippets
S
nippets
C#
Snippets
Date
•
Title
Async Waiting Inside C# Locks
C#
2 weeks ago
async
csharp
examples
lock
semaphoreslim
threading
C# Password Hasher
C#
2 weeks ago
security
password
identity
hash
csharp
How Serialize and Deserialize Objects with System.Text.Json
C#
4 weeks ago
csharp
deserialize
examples
json
microsoft
serialize
ASP.NET Async Generic Host Example
C#
1 month ago
async
csharp
examples
generic-host
Get Command Output in C#
C#
2 months ago
csharp
process
processstartinfo
Escape and Unescape XML Strings
C#
2 months ago
csharp
escape
helpers
sanitize
xml
C# XML Without Declaration and Namespace
C#
2 months ago
csharp
helpers
namespace
object
serialize
xml
Display Human Readable File Size
C#
4 months ago
bytes
csharp
format
humanize
size
HTTP Security Headers Middleware
C#
6 months ago
aspnet
async
csharp
csp
headers
middleware
security
Base64 Encode String
C#
7 months ago
base64
encode
Short GUID
C#
8 months ago
base64
csharp
guid
id
Random Password Generator
C#
1 year ago
csharp
generator
password
random
Check IP Address in CIDR Range
C#
1 year ago
cidr
csharp
ip
ip-address
network
Calculate Mean, Median, and Mode in C#
C#
2 years ago
algorithm
average
calculate
calculations
csharp
dotnet
examples
math
mean
median
mode
HTTP Retry With Exponential Backoff
C#
2 years ago
api
csharp
exponential
http
microservices
retry
ASP.NET Slugify Outbound Parameter Transformer
C#
2 years ago
csharp
dotnet
mvc
parameter
slug
transformer
Scale Down the Size Dimensions of a PDF File
C#
2 years ago
csharp
dimensions
examples
itextsharp
pdf
Write Byte Array to File
C#
2 years ago
bytes
csharp
file
filestream
helpers
stream
utils
ASP.NET Same Site Cookie Samples
C#
2 years ago
aspnet
cookie
csharp
examples
In-memory Queue Console Logger
C#
3 years ago
blockingcollection
console
logger
logging
queue
threading
threadsafe
1
2
3
4
5
6
»
Last
More »