Caution
JavaScript is disabled in your browser.
This site uses JavaScript for features such as search.
For the best experience, please enable JavaScript before browsing this site.
Dictionary
- Home
- C# Dictionary
C# Dictionary Index
| [Setup] C# Development Environment | Setup instructions for installing and running C#. |
| string.Length / IndexOf() | Gets the length of a string and searches for a character position. |
| string.Substring() / Remove() | Extracts and removes parts of a string. |
| string.Replace() / Contains() | Replaces parts of a string and checks for containment. |
| string.ToUpper() / ToLower() / Trim() | Converts case and removes whitespace. |
| string.Split() / string.Join() | Splits and joins strings. |
| string.PadLeft() / PadRight() | Pads and formats strings. |
| int.Parse() / int.TryParse() | Converts a string to a numeric value. |
| Convert.ToString() / Convert.ToInt32() | Type conversion utilities. |
| string.IsNullOrEmpty() / string.IsNullOrWhiteSpace() | Checks whether a string is null or empty. |
| array.Length / Array.Resize() | Gets the length of an array and resizes it. |
| Array.Sort() / Array.Reverse() | Sorts and reverses an array. |
| Array.IndexOf() / Array.Copy() | Searches and copies an array. |
| List<T>.Add() / Remove() / Clear() | Adds, removes, and clears elements in a list. |
| List<T>.Insert() / Count | Inserts elements into a list and gets the element count. |
| List<T>.Contains() / IndexOf() | Searches and checks for elements within a list. |
| List<T>.Sort() / Reverse() / ForEach() | Sorts, reverses, and loops through a list. |
| dict.Add() / Remove() / Clear() | Adds and removes keys and values from a dictionary. |
| dict.TryGetValue() / ContainsKey() | Safely retrieves values and checks for key existence in a dictionary. |
| dict.Keys / Values / foreach | Retrieves keys and values from a dictionary and loops through them. |
| Math.Abs() / Math.Round() / Math.Ceiling() / Math.Floor() | Absolute value, rounding, ceiling, and floor operations. |
| Math.Max() / Math.Min() / Math.Pow() / Math.Sqrt() | Maximum, minimum, power, and square root operations. |
| Math.PI / Math.E / Random | Constants and random number generation. |
| Enumerable.Where() | Filters elements that match a condition. |
| Enumerable.Select() | Transforms each element to generate a new sequence. |
| Enumerable.OrderBy() / OrderByDescending() | Sorts a sequence. |
| Enumerable.GroupBy() | Groups elements in a sequence. |
| Enumerable.Join() / Zip() | Joins two sequences. |
| Enumerable.First() / Last() / Single() | Retrieves the first, last, or single element. |
| Enumerable.Count() / Sum() / Average() | Aggregates count, sum, and average. |
| Enumerable.Any() / All() / Contains() | Evaluates conditions on sequence elements. |
| Enumerable.Distinct() / Take() / Skip() | Removes duplicates, limits count, and skips elements. |
| Enumerable.ToList() / ToArray() / ToDictionary() | Converts LINQ query results to a collection. |
| Enumerable.Aggregate() | Performs cumulative operations. |
| Enumerable.Range() / Repeat() / Empty() | Generates sequences. |
| async / await | Defines and awaits asynchronous methods. |
| Task.Run() / Task.Delay() | Runs tasks and introduces delays. |
| Task.FromResult() / CancellationToken | Creates immediately completed tasks and handles cancellation. |
| Exception Handling with async (try/catch with async) | Handles exceptions inside asynchronous methods. |
| File.ReadAllText() / File.WriteAllText() | Reads and writes an entire text file at once. |
| File.Exists() / File.Delete() / File.Copy() | Checks existence, deletes, and copies files. |
| StreamReader / StreamWriter | Reads and writes files line by line using streams. |
| Directory.Exists() / Directory.CreateDirectory() | Creates and checks directories. |
| Path.Combine() / Path.GetFileName() | Manipulates path strings. |
| try / catch / finally | Catches exceptions and performs cleanup. |
| throw / Custom Exceptions | Throws exceptions and defines custom exception types. |
| Console.WriteLine() / Console.Write() | Outputs to the console. |
| Console.ReadLine() / Console.ReadKey() | Reads input from the console. |
| DateTime.Now / DateTime.Today | Gets the current date and time. |
| DateTime.Parse() / DateTime.TryParse() | Converts a string to a DateTime value. |
| dateTime.ToString() / dateTime.AddDays() | Formats a DateTime and adds or subtracts time. |
| TimeSpan / Date Difference Calculation | Calculates and represents a time interval. |
| HashSet<T> | A collection that contains no duplicate elements. |
| Queue<T> / Stack<T> | Queue and stack data structures. |
| IEnumerable<T> / IList<T> | Base interfaces for collections. |
| Null Coalescing Operators ?? / ??= | Sets a default value for null and assigns it. |
| is / as / Pattern Matching | Type checking and conversion. |
| Nullable<T> / Nullable Types | Allows value types to hold null. |
| Debug.Log() / Debug.LogError() | Outputs debug information to the console. |
| GameObject.Find() / GetComponent<T>() | Finds objects and retrieves components in Unity. |
| Mathf (Unity Math Library) | A set of math functions specific to Unity. |
| Vector2 / Vector3 Operations | Calculations for 2D and 3D coordinate vectors. |
| Coroutine / IEnumerator | Splits processing over time using coroutines. |