Language
日本語
English

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.

  1. Home
  2. C# Dictionary

C# Dictionary

Beginners Guide: Overview, Features, and Learning PathAn overview of C#, the .NET platform, Unity, and how execution works (.cs → csc → IL → CLR), with a recommended learning order for this dictionary.
[Setup] C# Development EnvironmentSetup instructions for installing and running C#.
Creating and Running .cs FilesHow to write and run .cs files.
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() / CountInserts 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 / foreachRetrieves 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 / RandomConstants 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 / awaitDefines and awaits asynchronous methods.
Task.Run() / Task.Delay()Runs tasks and introduces delays.
Task.FromResult() / CancellationTokenCreates 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 / StreamWriterReads 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 / finallyCatches exceptions and performs cleanup.
throw / Custom ExceptionsThrows 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.TodayGets 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 CalculationCalculates 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 MatchingType checking and conversion.
Nullable<T> / Nullable TypesAllows 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 OperationsCalculations for 2D and 3D coordinate vectors.
Coroutine / IEnumeratorSplits processing over time using coroutines.
Basic Data Types (C#)An overview of C# basic data types, covering value/reference types, var type inference, and implicit/explicit conversions.
Comments (C#)How to write single-line (//), block (/* */), and XML documentation (///) comments in C#.
for Loop (C#)The basic syntax of the for loop with initialization, condition, and update expressions, plus break and continue.
foreach Statement (C#)The foreach statement for iterating over arrays and IEnumerable collections without an index variable.
if / else if / else (C#)The basic conditional branching syntax; C# requires a bool expression in every condition.
Main Method / static (C#)The Main method as the program entry point, and how the static modifier shares members across instances.
Operators (C#)Overview of arithmetic, comparison, and logical operators, including integer division behavior and Nullable types.
Pattern Matching (C#)Type, constant, and property patterns with is, switch expressions, and when guard clauses in C#.
record (C#)Immutable data types added in C# 9, supporting with expressions, value equality, and Deconstruct.
return Statement (C#)How return exits a method and returns a value, plus early return, guard clauses, and multi-value returns with tuples.
String Interpolation $"..." (C#)The $"..." syntax for embedding variables and expressions in strings with {} placeholders and format specifiers.
switch Statement / switch Expression (C#)Multi-branch switch statement and the switch expression introduced in C# 8, supporting strings, enums, and type patterns.
Ternary / Null-Conditional / Null-Coalescing Operators (C#)The ternary operator ?: , null-conditional ?. for safe member access, and ?? / ??= for null fallback values.
using (Namespace Import / Resource Disposal) (C#)Two uses of using: importing namespaces and automatically disposing IDisposable objects.
var (Type Inference) (C#)How var lets the compiler infer the type from the right-hand side, along with where it can and cannot be used.
while / do-while (C#)The while loop that runs while a condition is true, and do-while that always executes at least once.