Skip to main content
snippets
S
nippets
C#
Snippets
Date
•
Title
To Log String
C#
6 years ago
csharp
exception
extensions
log
To Name Value Collection Extension
C#
5 years ago
collection
config
csharp
extensions
namevaluecollection
settings
Transform XML using XSLT Stylesheet to HTML
C#
4 years ago
csharp
dotnet
parse
transform
xml
xslt
Translate Event-Based Asynchronous Operations to Tasks
C#
6 years ago
async
csharp
eap
examples
patterns
task
threading
Trim Duplicates from String
C#
7 years ago
character
csharp
dupe
extensions
helpers
string
trim
Try Dispose Extension Method
C#
7 years ago
csharp
dispose
extensions
object
Try Function Until Timeout Class
C#
5 years ago
class
csharp
dotnet
time
timeout
timespan
Type Extensions
C#
4 years ago
csharp
extensions
object
reflection
type
Unit Test from Multiple Threads
C#
6 years ago
csharp
testing
threading
threadsafe
Unix Epoch to DateTime
C#
7 years ago
csharp
date
datetime
epoch
time
unix
Upload files in ASP.NET Core
C#
2 years ago
buffer
csharp
dotnetcore
mvc
sanitize
security
stream
upload
Url Helper Extensions
C#
6 years ago
aspnet
csharp
extensions
mvc
url
Use Async Await within Task.Run
C#
2 years ago
async
csharp
examples
task
threading
Use FileSystemWatcher Instead of Polling
C#
6 years ago
csharp
file
threading
threadsafe
Use Server MapPath when HTTPContext is null
C#
5 years ago
aspnet
csharp
dotnet
httpcontext
path
webconfig
Use SqlBulkCopy in SQL CLR
C#
7 years ago
csharp
dba
examples
mssql
sqlclr
User Privileges and Elevated Account Status Helper
C#
3 years ago
account
csharp
helpers
impersonation
principalcontext
security
uac
utils
windows
Using Data Annotations for Model Validation
C#
3 years ago
csharp
data-annotations
examples
model
validation
Using Interlocked CompareExchange with Retry
C#
5 years ago
concurrency
csharp
dotnet
double
examples
interlocked
parallel
threading
threadsafe
Using LDAP Search to Retrieve a User's Token Groups
C#
1 year ago
activedirectory
chsarp
group
identity
ldap
performance
tokengroups
First
«
20
21
22
23
24
25
26
27
»
More »