Welcome To Snipplr


Everyone's Recent C# Snippets Tagged c#



1 777 posted 12 years ago by Krummelz
1 637 posted 12 years ago by jimfred
ASCIIEncoding class has another method, GetByte(), which does the opposite of this one.
1 757 posted 12 years ago by roboninjapiratejesus
this thing is a pain to configure
0 608 posted 12 years ago by amos24c
0 538 posted 12 years ago by amos24c
0 475 posted 12 years ago by BrentS
0 519 posted 12 years ago by BrentS
0 636 posted 12 years ago by wedgardigitalwkscom
1 452 posted 12 years ago by stuartleitch
Sets the keep-alive interval for the socket.
0 1132 posted 12 years ago by aelesbao
Ever wanted a method that can truncate a string, but only on a word boundary? This method works like Substring() but doesn't snip a string in the middle of a word, i.e. it only truncates the string on a word boundary. Useful for producing a summary f...
1 1016 posted 12 years ago by stewartrae
my take on fizzbuzz written in C#.Net - Razor
0 560 posted 13 years ago by rwczippy
Snip it if you keep forgetting how its done.
1 685 posted 13 years ago by fengelz
Not that theres anything new to this. In fact its very old fashioned, but If you like me forget how its done; snip it.
0 674 posted 13 years ago by fengelz
use this if you want to make a binary use an older version of a dependent binery
1 541 posted 13 years ago by samwa
The only way i know to create a normal "fire property changed" method that is still efficient yet strongly typed. The other common pattern uses run time checking and uses the TyepDescriptor for the current type to check for property existence - a muc...
0 427 posted 13 years ago by nimast
0 445 posted 13 years ago by tonatiuh
0 588 posted 13 years ago by tonatiuh
0 664 posted 13 years ago by dmertl
Useful for detecting when a string is <b>really</b> empty.
0 1305 posted 13 years ago by dotNetkow
I use these helper methods to create a jQuery based date text box with appropriate short date formatting.
0 575 posted 13 years ago by nkirkes
1 804 posted 13 years ago by samwa
Just the standard Yes/No MessageBox
0 468 posted 13 years ago by axs221
0 505 posted 13 years ago by robasta
Not extensively tested, but seems to work in my sample project. uses the class I posted here: http://www.snipplr.com/view/46669/minimist-c-errorlogging-class/
1 1105 posted 13 years ago by kyrathaba
The following extension method allows you to call Print() on any FrameworkElement, UIElement or group of elements, and print with a variety of settings such as landscape mode, shrink to fit, page centering, and more
0 761 posted 13 years ago by alishahnovin