Loading...
Preparing your coding drills
Comprehensive reference for 33 C# methods across 4 categories.
Add
Adds an element to the end of the List.
Remove
Removes the first occurrence of an element.
Find
Searches for an element matching the predicate.
Sort
Sorts the elements in the entire List.
Contains
Determines whether an element is in the List.
Where
Filters a sequence based on a predicate.
Select
Projects each element into a new form.
First
Returns the first element of a sequence.
FirstOrDefault
Returns the first element, or default if empty.
Any
Determines if any elements satisfy a condition.
All
Determines if all elements satisfy a condition.
Count
Returns the number of elements.
Sum
Computes the sum of a sequence.
OrderBy
Sorts elements in ascending order.
OrderByDescending
Sorts elements in descending order.
GroupBy
Groups elements by a key.
Distinct
Returns distinct elements.
Take
Returns a specified number of elements from the start.
Skip
Bypasses a specified number of elements.
ToList
Creates a List from a sequence.
ToDictionary
Creates a Dictionary from a sequence.
Aggregate
Applies an accumulator function over a sequence.
Split
Splits a string into substrings.
Join
Concatenates elements using a separator.
Trim
Removes leading and trailing whitespace.
Replace
Replaces all occurrences of a substring.
ToUpper
Converts to uppercase.
ToLower
Converts to lowercase.
StartsWith
Determines if string starts with value.
EndsWith
Determines if string ends with value.
Adds a key-value pair.
TryGetValue
Gets value if key exists.
ContainsKey
Determines if key exists.