Foundations of C# > C# List

2021-9-12 Less than 1 minute

# Foundations of C# > C# List

# What is a List in C#?

An object that holds variables in a specific order.

# What List methods seem like you might use them often? Why?

  • Add - adds an item to the end of a list
  • Find - returns the first occurrence of the item matching what you specified
  • Remove - removes the first occurrence of the specified item from the list.

# How would you retrieve an item from a list? What method could you use?

By using a for loop. foreach

# Daily Challenge

GregsList C# (opens new window)

Last update: October 25, 2021 00:27
Contributors: Derek Shain