C# Examples and Resources

This site contains articles that are mostly focused on C# programming and related topics, such as Visual Studio 2008 and ADO.NET. My goal is to provide a quality resource that is more usable for developers than most documentation.

Featured Article

The coolest article here right now is about how you can program monsters to move around walls. It is called A-Star Pathfinding. It contains two screenshots, and a ton of code, which is also available at my Google Code site. The article is in the Algorithms section.

Article Collection

All of the content here is my original work, and there is a link to more information about both the site in general and the author near the bottom of the page. Some of the links here actually begin a series of pages, or are part of one. The 5 most recent additions to the collection are highlighted.

ADO.NET

OdbcConnection Example and Syntax Secrets
SQLite Versus SQLCE
Ultimate SQLite FTS3 Guide

Algorithms

Alphanumeric Sorting in C#
Anagrams in C#
A-Star Pathfinding in C#
Directed Acyclic Word Graphs
How to Convert Bytes to Megabytes in C#
Levenshtein C# Implementation
Queue Generics as FIFO Caches in C#

ASP.NET

Beginning AJAX in ASP.NET
Change Title in Code-Behind With ASP.NET
Enhance Your Web App For iPhone and iPod
GET Versus POST Performance With AJAX in Browsers
HtmlMeta in ASP.NET Code-Behind Example
Master Pages and Simple Code-Behind
Output Caching and Master Pages
Recursion in C# on Your ASP.NET Sitemap
Redirect Requests With urlMappings
Trace.Write Basics and Samples in ASP.NET

File I/O

How to Deal With Locked Documents in C#
Recursively Find Files in Directories
Segment Files on Newlines With C#
Using the Using Keyword With StreamReader in C#

Language Features

Benchmark of TryGetValue on Dictionary
Improved StringBuilder Syntax in C#
Int Parsing Methods in C# .NET
Overhead of List Versus Int Array in C#
Protection Proxy Design Pattern in C#
Simplify 2D Arrays With Foreach and Yield
Singleton Versus Static Classes in C#
Solve the Collection Was Modified Exception

LINQ

Lazy LINQ Queries, and When Laziness Is More Work
LINQ Enumerable.Range Practical Example
Micro-Benchmark of LINQ on Windows Controls
Query a Sitemap With LINQ in ASP.NET

Site Links

Google Code Project
MSDN Code Project 1
MSDN Code Project 2
Random Article

Strings

Display Plural Words With C#
Essentials of IndexOf and IndexOfAny
How to Alphabetize a String in C#
How to Sanitize a String in C#
Remove Duplicate Words in C#
Remove Stopwords in C#
String Split Benchmark in C#
ToCharArray String Comparison in C#
ucfirst Methods in C# .NET
Word Count Algorithm in C#

Visual Studio 2008

Encapsulate Field in Visual Studio 2008
FxCop Performance Warnings
Settings.settings in Visual Studio
Todo Comments in Visual Studio 2008
Visual Studio Post and Pre-Build Macros

Windows Forms

ContextMenuStrip and Copy Command in C#
Customized Dialog Method in C# for Windows
DataGridView Tips and Secrets
Excel Interop Performance and Compatibility
Installer Class For NGEN.exe Precompilation
Make a 'Search Google For' Context Menu
Segoe UI in C# Windows Forms
Single-Instance C# Process Checker
TextBox.AppendText NewLine Tip
TextChanged Tips For Windows Forms
You are viewing a site called Dot Net Perls.
Find out more about it.