Skip to main content
snippets
S
nippets
C#
Snippets
Date
•
Title
Make a RESTful Async API Call in an MVC Controller
C#
7 years ago
aspnet
async
controller
csharp
examples
json
mvc
restful
Use Server MapPath when HTTPContext is null
C#
7 years ago
aspnet
csharp
dotnet
httpcontext
path
webconfig
Using Interlocked CompareExchange with Retry
C#
7 years ago
concurrency
csharp
dotnet
double
examples
interlocked
parallel
threading
threadsafe
Generate a URL from ASP.NET MVC Route Attributes
C#
7 years ago
action
aspnet
controller
csharp
dotnet
examples
mvc
razor
url
Operation Performance Timer Class
C#
7 years ago
benchmark
class
csharp
performance
Singleton Patterns in C#
C#
7 years ago
csharp
dotnet
examples
patterns
singleton
threading
threadsafe
Convert from utf-8 bytes to string and back
C#
7 years ago
byte
convert
csharp
encode
encoding
examples
string
unicode
utf8
Example Async Database Operations in C#
C#
7 years ago
adonet
async
csharp
database
dotnet
examples
Entity Framework DbContext Options Example
C#
7 years ago
csharp
dbcontext
dotnet
entityframework
examples
Socket Extensions
C#
7 years ago
async
csharp
dotnet
ip
network
socket
Simple C# Open Port Network Scanner
C#
7 years ago
async
class
csharp
dotnet
examples
ip
network
port
scan
socket
C# Extensions for Selenium WebDriver
C#
7 years ago
csharp
extensions
selenium
testing
uitest
Compress and Decompress Bytes
C#
7 years ago
byte
compress
csharp
dotnet
examples
gzip
Greatest Common Denominator in C#
C#
7 years ago
algorithm
calculations
csharp
denominator
dotnet
math
A Faster Bucket Sort
C#
7 years ago
algorithm
bucket
class
csharp
dotnet
sort
Priority Queue in C#
C#
7 years ago
algorithm
array
class
csharp
data
heap
priority
queue
structures
Reading Text Files
C#
7 years ago
byte
csharp
dotnet
examples
file
linebreak
lines
read
Pick Random Elements Based on Probability
C#
7 years ago
algorithm
articles
csharp
list
math
probability
random
sort
Embedded Resource Helper
C#
7 years ago
csharp
embed
helpers
resource
Generate a Unique Hardware ID
C#
7 years ago
cpu
csharp
dotnet
hardware
id
unique
windows
First
«
11
12
13
14
15
16
17
18
19
20
21
»
Last
More »