Visual C#

Here we list the Visual C# (and some console based code) snippets found in the lexicon. As with many of our other .NET framework code, these snippets have generally been tested using Visual Studio 2010 or above (that would be .NET 4.0+). Any special conditions needed to run the code will be listed on each snippet page in the snippets description or special notes.

Snippet Listing

Binary Search in C#Change Return
Convert TemperatureCredit Card Validation Using Luhn 10
Distance FormulaGrayscale Image
Installed Font Name List Using GeneratorNth Term in the Fibonacci Sequence
Read Nth Line from Text FileReplace Duplicate Words in Text
Screen Image CaptureStraight Selection Sort in C#
Watermarking Image