1/21
Flashcards covering key C# programming concepts, collections, delegate declarations, event handlers, and code execution outputs.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
Queue
A collection class that represents a 'First In, First Out' collection of objects.
GetByIndex()
A method in SortedList that returns the value of the specified index.
Remove()
The method used to delete an item from an ArrayList.
delegate keyword
The keyword used to declare a delegate in a class.
Hashtable Value
The element that can be accessed in a hashtable when a key is specified.
ArrayList
An ordered, dynamic collection of objects where items can be added and removed from specified index locations.
add and remove accessors
Event accessors that are similar to get and set accessors used with properties.
Delegate
A type that safely encapsulates a method.
IDictionary
An interface that provides a list of elements that can be accessed through a key or value.
Sort()
A method used to arrange or categorize elements in a list object.
Event
A language construct usually known as a task initiator.
SortedList
A type of collection used to arrange key values, considered a combination of ArrayList and Hashtable.
System.Collections.Generic
The namespace containing several generic collection classes in C#.
-= operator
The operator used to remove an event subscription or event handler from a class.
ContainsKey()
A method used to check if a SortedList or Hashtable contains a specified key, returning a boolean value true if present.
RemoveAt(int index)
A SortedList method declared as void RemoveAt(int index) used to remove a specified element by calling its index.
Stack Push Method
The method syntax used to add an object to a Stack collection, such as objStack.Push("Ball").

DelStringValue Execution
Execution of DelStringValue stringVal = new DelStringValue(GetFullName) where stringVal("James Cruz") returns and outputs "James Cruz".

RemoveToHash Execution
Code evaluating hashItem.ContainsKey("Apple") against a hashtable with "Coffee" and "Sugar", outputting "Not Available!".

DelValues Generic Delegate Invocation
Execution of generic delegates fullName("Paul Cruz") and totalAmount(230), resulting in output "Paul Cruz 230".

DelTotal Signature Mismatch
Attempting to bind delegate DelTotal(int total) to method GetTotalAmount(double totalAmount), causing compilation error: "No overload for 'Form1.GetTotalAmount(double)' matches delegate 'DelTotal'".

Custom Event Accessor Syntax
Syntax declaring custom event accessors using add { delName += value; } and remove { delName -= value; } blocks inside an event declaration.