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