C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
C# ContainsValue Method (Value Exists in Dictionary)
C# Normalize, IsNormalized Methods
C# File.ReadAllBytes, Get Byte Array From File
C# NullReferenceException and Null Parameter
C# File.ReadAllLines, Get String Array From File
C# Convert Char Array to String
C# File.ReadAllText, Get String From File
C# Color Examples: FromKnownColor, FromName
C# Comment: Single Line and Multiline
C# Concat Extension: Combine Lists and Arrays
C# Console Color, Text and BackgroundColor
C# File.ReadLines, Use foreach Over Strings
C# FileInfo Length, Get File Size
C# StreamReader ReadLine, ReadLineAsync Examples
C# Aggregate: Use Lambda to Accumulate Value
C# AggressiveInlining: MethodImpl Attribute
C# MultiMap Class (Dictionary of Lists)
C# Regex, Read and Match File Lines
C# Regex Groups, Named Group Example
C# Anonymous Function (Delegate With No Name)
C# Any Method, Returns True If Match Exists
C# Regex.Matches Quote Example
C# StringBuilder Append and AppendLine
C# ArgumentException: Invalid Arguments
C# Regex.Matches Method: foreach Match, Capture
C# Filename With Date Example (DateTime.Now)
C# FileNotFoundException (catch Example)
C# FileStream Length, Get Byte Count From File
C# Convert String to Byte Array
C# FileStream Example, File.Create
C# FileSystemWatcher Tutorial (Changed, e.Name)
C# Sum Method: Add up All Numbers
C# Switch Char, Test Chars With Cases
C# System (using System namespace)
C# Tag Property: Windows Forms
C# TextReader, Returned by File.OpenText
C# Array.ConvertAll, Change Type of Elements
C# SplitContainer: Windows Forms
C# SqlClient Tutorial: SqlConnection, SqlCommand
C# SqlCommand Example: SELECT TOP, ORDER BY
C# SqlCommandBuilder Example: GetInsertCommand
C# SqlConnection Example: Using, SqlCommand
C# SqlDataReader: GetInt32, GetString
C# SqlParameter Example: Constructor, Add
C# Array.CreateInstance Method
C# Array and Dictionary Test, Integer Lookups
C# HttpUtility.HtmlEncode Methods
C# String ToCharArray() method
C# Array.Exists Method, Search Arrays
C# Func Object (Lambda That Returns a Value)
C# GC.Collect Examples: CollectionCount, GetTotalMemory
C# Path.GetDirectoryName (Remove File From Path)
C# Array.Find Examples, Search Array With Lambda
C# Array.ForEach: Use Lambda on Every Element
C# HttpClient Example: System.Net.Http
C# Array Versus List Memory Usage
C# Define and Undef Directives
ASP.NET HttpContext Request Property
C# Stack Collection: Push, Pop
C# Static List: Global List Variable
C# Array Property, Return Empty Array
C# String GetTypeCode() method
C# String ToLowerInvariant() method
C# DataColumn Example: Columns.Add
DataGridView Columns, Edit Columns Dialog
C# DataGridView Row Colors (Alternating)
C# DataTable RowChanged Example: AcceptChanges
C# String ToUpperInvariant() method
C# BinaryReader Example (Use ReadInt32)
C# Regex.Replace, Matching End of String
C# Regex.Replace, Remove Numbers From String
C# FirstOrDefault (Get First Element If It Exists)
C# Fisher Yates Shuffle: Generic Method
C# Flatten Array (Convert 2D to 1D)
C# Regex.Replace, Merge Multiple Spaces
C# Regex.Replace Examples: MatchEvaluator
C# First (Get Matching Element With Lambda)
C# Regex.Split, Get Numbers From String
C# ContainsKey Method (Key Exists in Dictionary)
C# Regex Trim, Remove Start and End Spaces
C# Implicitly Typed Local Variable
C# Object and Collection Initializer
C# Auto Implemented Properties
C# Named and Optional Arguments
C# Convert ArrayList to Array (Use ToArray)
C# RegexOptions.IgnoreCase Example
C# New Features | C# Version Features
C# Remove Char From String at Index
C# DialogResult: Windows Forms
C# Dictionary, Read and Write Binary File
C# Array Examples, String Arrays
C# ArraySegment: Get Array Range, Offset and Count
C# BufferedStream: Optimize Read and Write
C# StatusStrip Example: Windows Forms
C# Dictionary Optimization, Increase Capacity
C# Dictionary Optimization, Test With ContainsKey
C# String Chars (Get Char at Index)
C# DictionaryEntry Example (Hashtable)
C# Directory.CreateDirectory, Create New Folder
C# Directory.GetFiles Example (Get List of Files)
C# Chart, Windows Forms (Series and Points)
C# Await in Catch Finally Blocks
C# Increment String That Contains a Number
C# Increment, Preincrement and Decrement Ints
C# Indexer Examples (This Keyword, get and set)
C# Default Values for Getter Only Properties
C# Clear Dictionary: Remove All Keys
C# Clone Examples: ICloneable Interface
C# Closest Date (Find Dates Nearest in Time)
C# DateTime.MinValue (Null DateTime)
C# Combine Arrays: List, Array.Copy and Buffer.BlockCopy
C# Comparison Object, Used With Array.Sort
C# DateTime.Parse: Convert String to DateTime
C# Interlocked Examples: Add, CompareExchange
C# 7 Zip Executable (Process.Start)
C# Remove Duplicates From List
C# Null Coalescing and Null Conditional Operators
C# Null List (NullReferenceException)
C# Enum.Format Method (typeof Enum)
C# Enum.GetName, GetNames: Get String Array From Enum
C# Enum.Parse, TryParse: Convert String to Enum
C# ElementAt, ElementAtOrDefault Use
C# Error and Warning Directives
C# ErrorProvider Control: Windows Forms
C# Program to swap numbers without third variable
C# Program to convert Decimal to Binary
C# Enum Array Example, Use Enum as Array Index
C# enum Flags Attribute Examples
C# Get Every Nth Element From List (Modulo)
C# StartsWith and EndsWith String Methods
C# Program to Convert Number in Characters
C# Expression Bodied Constructors and Finalizers
C# InitializeComponent Method: Windows Forms
C# NumericUpDown Control: Windows Forms
C# object.ReferenceEquals Method
C# Except (Remove Elements From Collection)
C# Program to Print Alphabet Triangle
C# Expression Bodied Getters and Setters
C# Program to print Number Triangle
C# Enum ToString: Convert Enum to String
C# Enumerable.Range, Repeat and Empty
C# Dictionary Equals: If Contents Are the Same
C# Dictionary Versus List Loop
C# Dictionary Order, Use Keys Added Last
C# Dictionary Size and Performance
C# Dictionary Versus List Lookup Time
C# Get Directory Size (Total Bytes in All Files)
C# Distinct Method, Get Unique Elements Only
C# Divide by Powers of Two (Bitwise Shift)
C# DomainUpDown Control Example
C# Double Type: double.MaxValue, double.Parse
C# All Method: All Elements Match a Condition
C# PadRight and PadLeft: String Columns
C# Arithmetic Expression Optimization
C# Array.AsReadOnly Method (ObjectModel)
ASP.NET MapPath: Virtual and Physical Paths
C# Get Paragraph From HTML With Regex
C# explicit and implicit Keywords
C# typeof and nameof Operators
C# String Interpolation Examples
C# String Performance, Memory Usage Info
C# String Slice, Get Substring Between Indexes
C# StringBuilder Append Performance
C# Parallel.For Example (Benchmark)
C# Parallel.Invoke: Run Methods on Separate Threads
C# Array.IndexOf, LastIndexOf: Search Arrays
C# If Preprocessing Directive: Elif and Endif
C# If Versus Switch Performance
C# Parameter Passing, ref and out
C# int.Parse: Convert Strings to Integers
C# TextWriter, Returned by File.CreateText
C# OrderBy, OrderByDescending Examples
C# Process Examples (Process.Start)
C# Thread Join Method (Join Array of Threads)
C# ThreadPool.SetMinThreads Method
Panel, Windows Forms (Create Group of Controls)
C# Get Percentage From Number With Format String
ASP.NET PhysicalApplicationPath
C# Position Windows: Use WorkingArea and Location
Visual Studio Post Build, Pre Build Macros
C# Get Title From HTML With Regex
C# ToCharArray: Convert String to Array
C# Bool Methods, Return True and False
C# bool Sort Examples (True to False)
C# StreamReader ReadToEnd Example (Read Entire File)
C# StreamReader ReadToEndAsync Example (Performance)
C# String Append (Add Strings)
C# String Compare and CompareTo Methods
C# Cast Extension: System.Linq
C# Cast to Int (Convert Double to Int)
C# String Constructor (new string)
C# Program to generate Fibonacci Triangle
C# Math.Max and Math.Min Examples
C# void Method, Return No Value
C# WebBrowser Control (Navigate Method)
C# WebClient: DownloadData, Headers
C# String CompareOrdinal() method
C# Math.Round Examples: MidpointRounding
C# Max and Min: Get Highest or Lowest Element
C# MemoryFailPoint and InsufficientMemoryException
C# ToBase64String (Data URI Image)
C# Path.GetExtension: File Extension
C# Path.GetRandomFileName Method
C# Predicate (Lambda That Returns True or False)
C# Pretty Date Format (Hours or Minutes Ago)
C# Convert Degrees Celsius to Fahrenheit
C# Convert Dictionary to String (Write to File)
C# Convert List to DataTable (DataGridView)
C# Convert Miles to Kilometers
C# Convert Milliseconds, Seconds, Minutes
C# Convert Nanoseconds, Microseconds, Milliseconds
C# Console.ReadLine Example (While Loop)
C# Console.SetOut and Console.SetIn
C# Intersect: Get Common Elements
C# InvalidOperationException: Collection Was Modified
C# IOException Type: File, Directory Not Found
C# RNGCryptoServiceProvider Example
C# PropertyGrid: Windows Forms
C# Protected and internal Keywords
C# Console.Write, Append With No Newline
C# IOrderedEnumerable (Query Expression With orderby)
C# Remove Punctuation From String
C# Query Windows Forms (Controls.OfType)
C# Queryable: IQueryable Interface and AsQueryable
C# IComparable Example, CompareTo: Sort Objects
C# RadioButton Use: Windows Forms
C# ReadOnlyCollection Use (ObjectModel)
C# Recursive File List: GetFiles With AllDirectories
C# Regex.Escape and Unescape Methods
C# Count, Dictionary (Get Number of Keys)
C# IDictionary Generic Interface
C# IsFixedSize, IsReadOnly and IsSynchronized Arrays
C# IList Generic Interface: List and Array
C# string.IsNullOrEmpty, IsNullOrWhiteSpace
C# IsSorted Method: If Array Is Already Sorted
C# ROT13 Method, Char Lookup Table
C# StringComparison and StringComparer
C# StringReader Class (Get Parts of Strings)
C# Count Extension Method: Use Lambda to Count
C# ImageList Use: Windows Forms
C# CopyTo String Method: Put Chars in Array
C# ValueTuple Examples (System.ValueTuple, ToTuple)
C# String For Loop, Count Spaces in String
C# string.Intern and IsInterned
C# Variable Initializer for Class Field
C# String Length Property: Get Character Count
C# String IsNormalized() method
C# ToLookup Method (Get ILookup)
C# ToLower and ToUpper: Uppercase and Lowercase Strings
TableLayoutPanel: Windows Forms
ToolStripContainer Control: Dock, Properties
C# ToString Integer Optimization
C# Take and TakeWhile Examples
C# Task Examples (Task.Run, ContinueWith and Wait)
C# Text Property: Windows Forms
C# TextFieldParser Examples: Read CSV
C# ToString: Get String From Object
C# String Intern(String str) method
C# Tree and Nodes Example: Directed Acyclic Word Graph
C# Convert String Array to String
C# MemoryStream: Use Stream on Byte Array
C# int.MaxValue, MinValue (Get Lowest Number)
C# Modulo Operator: Get Remainder From Division
C# MonthCalendar Control: Windows Forms
C# Integer Append Optimization
C# Label Example: Windows Forms
C# Last, LastOrDefault Methods
C# Mutex Example (OpenExisting)
C# String GetEnumerator() method
C# String GetHashCode() method
C# KeyCode Property and KeyDown
C# Nested Lists: Create 2D List or Jagged List
C# KeyNotFoundException: Key Not Present in Dictionary
C# Let Keyword (Use Variable in Query Expression)
C# Regex Versus Loop: Use For Loop Instead of Regex
C# Regex.Match Examples: Regular Expressions
C# RemoveAll: Use Lambda to Delete From List
C# Return Optimization: out Performance
C# Count Elements in Array and List
C# SequenceEqual Method (If Two Arrays Are Equal)
C# Single Method: Get Element If Only One Matches
C# Singleton Pattern Versus Static Class
C# Skip and SkipWhile Examples
C# Sort Dictionary: Keys and Values
C# String Literal: Newline and Quote Examples
C# LinkLabel Example: Windows Forms
C# List Add Method, Append Element to List
C# List AddRange, InsertRange (Append Array to List)
C# ListBox Tutorial (DataSource, SelectedIndex)
C# ListView Tutorial: Windows Forms
C# SaveFileDialog: Use ShowDialog and FileName
C# Seek File Examples: ReadBytes
C# ThreadStart and ParameterizedThreadStart
C# StringBuilder Clear (Set Length to Zero)
C# Select Method (Use Lambda to Modify Elements)
C# StringBuilder Equals (If Chars Are Equal)
C# StringBuilder ToString: Get String From StringBuilder
C# Serialize List (Write to File With BinaryFormatter)
C# Memory Usage for Arrays of Objects
C# Method Call Depth Performance
C# Method Parameter Performance
C# String Between, Before, After
C# Binary Representation int (Convert, toBase 2)
C# bool Array (Memory Usage, One Byte Per Element)
C# bool.Parse, TryParse: Convert String to Bool
C# Change Characters in String (ToCharArray, For Loop)
C# Char Combine: Get String From Chars
C# Generic Class, Generic Method Examples
C# char.IsDigit (If Char Is Between 0 and 9)
C# CSV Methods (Parse and Segment)
C# GetEnumerator: While MoveNext, Get Current
C# GetHashCode (String Method)
C# Thumbnail Image With GetThumbnailImage
C# Character Literal (const char)
C# DataRow Field Method: Cast DataTable Cell
C# Global Variable Examples (Public Static Property)
ASP.NET Global Variables Example
C# Char Lowercase Optimization
C# Char Test (If Char in String Equals a Value)
C# Get Day Count Elapsed From DateTime
C# DateTime.Now (Current Time)
C# Array Length Property, Get Size of Array
C# GZipStream Example (DeflateStream)
C# Action Object (Lambda That Returns Void)
C# DateTime.Today (Current Day With Zero Time)
C# DateTime.TryParse and TryParseExact
C# Visual Studio Debugging Tutorial
C# descending, ascending Keywords
C# Whitespace Methods: Convert UNIX, Windows Newlines
C# Settings.settings in Visual Studio
C# Shuffle Array: KeyValuePair and List
C# TryGetValue (Get Value From Dictionary)
C# String IsNullOrEmpty() method
C# Type Class: Returned by typeof, GetType
C# String IsNullOrWhiteSpace() method
C# Single Instance Windows Form
C# TypeInitializationException
C# Word Interop: Microsoft.Office.Interop.Word
C# String LastIndexOf() method
C# FolderBrowserDialog Control
C# Font Type: FontFamily and FontStyle
ForeColor, BackColor: Windows Forms
C# Union: Combine and Remove Duplicate Elements
C# XElement Example (XElement.Load, XName)
C# String LastIndexOfAny() method
C# Sort List With Lambda, Comparison Method
C# Sort Examples: Arrays and Lists
C# Unsafe Keyword: Fixed, Pointers
C# Zip Method (Use Lambda on Two Collections)
C# using Statement: Dispose and IDisposable
C# File.Move Method, Rename File
C# Array.Sort: Keys, Values and Ranges
C# Byte Array: Memory Usage, Read All Bytes
C# Capacity for List, Dictionary
C# Case Insensitive Dictionary
C# Random Paragraphs and Sentences
C# Array Slice, Get Elements Between Indexes
C# Array.TrueForAll: Use Lambda to Test All Elements
C# Checked and Unchecked Keywords
C# Assign Variables Optimization
C# ASCII Transformation, Convert Char to Index
C# CheckedListBox: Windows Forms
C# Sort KeyValuePair List: CompareTo
C# List CopyTo (Copy List Elements to Array)
C# List Equals (If Elements Are the Same)
C# List Find and Exists Examples
ASP.NET LiteralControl Example
C# Locality Optimizations (Memory Hierarchy)
C# Loop Over String Chars: Foreach, For