Skip to main content
snippets
S
nippets
C#
Snippets
Date
•
Title
Simple Token Replacement Method in C#
C#
4 years ago
csharp
helpers
replace
string
template
token
utils
BenchmarkDotNet Usage Examples
C#
4 years ago
benchmark
benchmarkdotnet
csharp
dotnet
dotnetcore
library
performance
testing
Assertion Helper Class
C#
4 years ago
arguments
assert
csharp
exception
guard
helpers
parameter
type
utils
validation
HttpHeaders Class Extensions
C#
4 years ago
csharp
extensions
headers
http
httpheaders
tryparse
Anonymize IP Address
C#
4 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#
5 years ago
csharp
examples
owasp
security
xml
Strip Trailing Slashes
C#
5 years ago
csharp
helpers
path
remove
slash
string
strip
uri
url
utils
Convert Enum to Dictionary
C#
5 years ago
csharp
dictionary
enum
helpers
utils
ASP.NET MVC Rate Limiting (Throttle) Attribute
C#
5 years ago
aspnet
attribute
cache
csharp
filter
mvc
rate
route
security
throttle
ASP.NET MVC Exception Handler Attribute
C#
5 years ago
aspnet
attribute
csharp
dotnetcore
examples
exception
filter
logging
mvc
ASP.NET MVC Authorize Attribute
C#
5 years ago
aspnet
attribute
authorization
authorize
csharp
dotnet
dotnetcore
filter
mvc
security
Check if Date is On or Between Dates
C#
5 years ago
csharp
datetime
extensions
ASP.NET MVC Security Headers Filter
C#
5 years ago
aspnet
attribute
csharp
filter
headers
http
mvc
response
security
Fast Whitespace Removal from String
C#
5 years ago
benchmark
csharp
helpers
jit
performance
string
trim
utils
whitespace
Convert an image to a PDF using iTextSharp
C#
5 years ago
convert
csharp
examples
helpers
image
itextsharp
pdf
utils
«
1
2
3
4
5
6
7
8
9
10
11
»
Last
More »