Skip to main content
snippets
S
nippets
C#
Snippets
Date
•
Title
Invert last name first, first name last
C#
2 months ago
csharp
display-name
format
user
Get FirstOrDefault Http Header in C#
C#
4 months ago
csharp
extensions
header
httpclient
httpheaders
Convert Byte Array to Hex String
C#
5 months ago
convert
csharp
hex
Replace Invalid File Name Characters in C#
C#
5 months ago
character
csharp
filename
sanitize
Generate a Random Time Interval
C#
6 months ago
csharp
interval
jitter
random
schedule
stagger
timespan
Merge Dictionaries
C#
7 months ago
csharp
dictionary
helpers
merge
utils
Strip HTML Tags from String in C#
C#
8 months ago
csharp
decode
encode
html
sanitize
security
strip
tags
C# Clamp Integer Values
C#
8 months ago
clamp
csharp
extensions
integer
Disable Response Caching in ASP.NET Core
C#
9 months ago
aspnet
cache
examples
response
Async Waiting Inside C# Locks
C#
9 months ago
async
csharp
examples
lock
semaphoreslim
threading
C# Password Hasher
C#
9 months ago
csharp
hash
identity
password
security
How Serialize and Deserialize Objects with System.Text.Json
C#
10 months ago
csharp
deserialize
examples
json
microsoft
serialize
ASP.NET Async Generic Host Example
C#
10 months ago
async
csharp
examples
generic-host
Get Command Output in C#
C#
10 months ago
csharp
process
processstartinfo
Escape and Unescape XML Strings
C#
10 months ago
csharp
escape
helpers
sanitize
xml
C# XML Without Declaration and Namespace
C#
10 months ago
csharp
helpers
namespace
object
serialize
xml
Display Human Readable File Size
C#
1 year ago
bytes
csharp
format
humanize
size
HTTP Security Headers Middleware
C#
1 year ago
aspnet
async
csharp
csp
headers
middleware
security
Base64 Encode String
C#
1 year ago
base64
encode
Short GUID
C#
1 year ago
base64
csharp
guid
id
1
2
3
4
5
6
»
Last
More »