Skip to main content
snippets
S
nippets
C#
Snippets
Date
•
Title
Trim Duplicates from String
C#
9 years ago
character
csharp
dupe
extensions
helpers
string
trim
Try Dispose Extension Method
C#
9 years ago
csharp
dispose
extensions
object
Try Function Until Timeout Class
C#
7 years ago
class
csharp
dotnet
time
timeout
timespan
Type Extensions
C#
6 years ago
csharp
extensions
object
reflection
type
Unit Test from Multiple Threads
C#
8 years ago
csharp
testing
threading
threadsafe
Unix Epoch to DateTime
C#
9 years ago
csharp
date
datetime
epoch
time
unix
Upload files in ASP.NET Core
C#
4 years ago
buffer
csharp
dotnetcore
mvc
sanitize
security
stream
upload
Url Helper Extensions
C#
8 years ago
aspnet
csharp
extensions
mvc
url
Use Async Await within Task.Run
C#
4 years ago
async
csharp
examples
task
threading
Use FileSystemWatcher Instead of Polling
C#
8 years ago
csharp
file
threading
threadsafe
Use Server MapPath when HTTPContext is null
C#
7 years ago
aspnet
csharp
dotnet
httpcontext
path
webconfig
Use SqlBulkCopy in SQL CLR
C#
9 years ago
csharp
dba
examples
mssql
sqlclr
User Privileges and Elevated Account Status Helper
C#
5 years ago
account
csharp
helpers
impersonation
principalcontext
security
uac
utils
windows
Using Data Annotations for Model Validation
C#
5 years ago
csharp
data-annotations
examples
model
validation
Using Interlocked CompareExchange with Retry
C#
7 years ago
concurrency
csharp
dotnet
double
examples
interlocked
parallel
threading
threadsafe
Using LDAP Search to Retrieve a User's Token Groups
C#
3 years ago
activedirectory
csharp
group
identity
ldap
performance
tokengroups
Using LDAP to Enumerate Large Groups
C#
8 years ago
activedirectory
csharp
group
ldap
Using Razor for Email Templates
C#
7 years ago
csharp
dotnet
email
examples
razor
template
Using Task.WhenAll to Await Sending Email Messages Async
C#
4 years ago
async
csharp
examples
exception
sendmail
sendmailasync
task
threading
Using the BackgroundWorker component
C#
8 years ago
async
backgroundworker
csharp
examples
task
threading
First
«
21
22
23
24
25
26
27
28
»
More »