Dot Net Code

Question: what is this?

An adjunct site to the articles at Dot Net Perls. The point here is to provide a simple and fast code-viewer for looking at .NET code. Links are provided to relevant articles. Code is public domain.

Information: about this site

The site is developed and maintained by Sam Allen, who writes articles about the code at Dot Net Perls. This site provides another view to the code and is helpful as a companion place.

Information: more places to look

The author reminds you that he has stuff at Google Code, as well as at three sites at Microsoft Code. They are DAWG1, Pathfinding1, and Anagrams.

Information: C# methods available

AlphabetizeString - Sorts letters in string alphabetically
Alphanum - Sorts strings alphanumerically
Anagrams - Finds exact anagrams quickly
BetterDialog - Enhanced dialog box for Windows Forms
Bitcount - Returns number of 1 bits in integers
CanReadFile - Checks whether FileStream can be read from
CharArrayExample - Compares char arrays to StringBuilder
CheckValidFileName - Throws if filename is greater than 256 characters
ConvertNum - Convert numbers to different units
CountLinesFile - Returns the number of lines in a file on disk
CountLinesString - Retrieves the number of lines in string
DateTime - Finds relative dates and similar logic
DeBruijn - Finds first set bit
DebugExample - Usage of Debug class
DecrementLoop - Tests against zero in loops
DictionaryKeyValue - Fast method to iterate through Dictionary
DictionaryTry - Compares tester-doer pattern
DictionaryValueBenchmark - Changes values in Dictionary
DirectoryStack - Recurses through directory trees simply
DirectoryWalker - Traverses directories and stores paths in list
DuplicateWords - Remove words that appear more than once in string
EnumExample - Shows usages of enum values
ExcelDates - Converts Excel dates to DateTime
FileExtensionBenchmark - Compares methods of checking file extensions
FindFirstChar - First non-whitespace character index in string
GZipStreamString - Compresses string and writes to file
HtmlMarkup - Shows use of HtmlTextWriter for outputting HTML
IndexOfBench - Benchmarks IndexOf method
InitializeArray - Sets all values in array
IsValidGZip - Checks for valid GZip header bytes
JaggedArray - Examples of jagged arrays
Levenshtein - Computes distance between two strings
MemoryWatcher - Monitor Windows process memory usage
NGENInstaller - Precompiles .NET programs for faster startup
PasteBug - Fixes nasty bug with Paste Undo in Windows Forms
Pathfinding - A* pathfinding implementation example
Plurals - Pluralizes words from preset dictionary
RegexPerformance - Benchmarks for Regex code
RegexTrim - Removes leading and trailing whitespace from string
ROT13 - Rotate characters for obfuscation
SanitizeString - Scans through text and replaces parts not required
Segment - Divides CSV files on new lines
SetMinThreads - Benchmarks ThreadPool usage with SetMinThreads
SingleInstance - Allows only one instance of a process
Singleton - Single-instance data structure pattern
SitemapRecursion - Recurses through ASP.NET sitemaps
SortLength - Sort strings by their character length
Stopwords - Remove 'poison' or stopwords from string
StringSort - Several ways of quickly sorting strings
SwitchExamples - Examples of switch statement
UnsafeParse - Faster integer parsing method
UnwindLoop - Shows loop unwind optimization
UppercaseFirst - Uppercases first letter of string
ValidXHTML - Looks for errors in XHTML document fragments
WordCount - Count words in strings accurately
Dot Net Perls > Dot Net Code
© 2008 Sam Allen. All rights reserved.