C# Collections, Delegates, and Events Vocabulary

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/26

flashcard set

Earn XP

Description and Tags

Flashcards containing key terms, methods, classes, syntax rules, and concepts for C# collections, delegates, and events from the lecture transcript.

Last updated 1:07 PM on 9/7/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

27 Terms

1
New cards

Queue

A class that represents the 'First In, First Out' collection of objects.

2
New cards

Delegate

A type that safely encapsulates a method and can call any method as long as its signature matches.

3
New cards

delegate (keyword)

The keyword used to declare a delegate in a class.

4
New cards

Delegate Declaration Syntax

public delegate int delegateName();

5
New cards

Delegate Instantiation Syntax

DelegateName dn = new DelegateName(ClassName.MethodName);

6
New cards

SortedList

A type of collection used to arrange key values, considered a combination of ArrayList and Hashtable.

7
New cards

GetByIndex()

A method in a SortedList that returns the value of the specified index.

8
New cards

bool ContainsKey()

A method used to check if the SortedList contains the specified key that returns a boolean value true.

9
New cards

void RemoveAt(int index)

A method used to remove the specified element by calling its index in SortedList.

10
New cards

ArrayList

An ordered collection of objects that is dynamic since items can be added and removed from the specified index location.

11
New cards

Remove()

A method used to delete an item from an ArrayList.

12
New cards

Sort()

A method that can be used to arrange the elements in the list object.

13
New cards

Value

The data that can be accessed in the hashtable when a key is specified.

14
New cards

add-remove

Event accessors that are similar to get and set accessors used with properties.

15
New cards

IDictionary

An interface that provides a list of elements that can be accessed through a key or value.

16
New cards

Event

A feature in C# usually known as a task initiator.

17
New cards

System.Collections.Generic

The namespace that contains several generic collection classes.

18
New cards

-= (operator)

An operator used to remove an event from a class.

19
New cards

Adding Item to SortedList Syntax

srtLst.Add("Coffee", 98);

20
New cards

Generic List Declaration Syntax

List varName = new List();

21
New cards

ArrayList General Syntax

ArrayList names = new ArrayList();

22
New cards

Generic Queue Declaration Syntax

Queue varName = new Queue();

23
New cards

Simple Event Class Declaration Syntax

public static delegateName eventName;

24
New cards

List Object Categorization Syntax

varList.Sort()

25
New cards

Adding Object to ArrayList Syntax

ArrayList varList = new ArrayList(); varList.Add("Cake");

26
New cards

Adding Object to Stack Collection Syntax

Stack objStack = new Stack(); objStack.Push("Ball");

27
New cards

Event Add and Remove Accessors Syntax

public event DelegateName EventName { add { delName += value; } remove { delName -= value; } }