1/49
Vocabulary flashcards covering key C# concepts and Windows Forms controls and events from the notes.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Semicolon
Each C# statement ends with a semicolon.
Case sensitivity
C# treats myVariable and MyVariable as distinct identifiers.
Braces
Braces define blocks and scopes for classes methods and control structures.
using System;
Directive that allows access to the System namespace and basic libraries.
class
A container that defines a new type by grouping data and methods.
Main
The program entry point typically defined as static void Main().
Console.WriteLine
Writes text to the console and adds a new line.
Identifier
Names given to variables classes methods and other elements.
Keywords
Reserved words like int string if class cannot be used as identifiers.
PascalCase
Naming convention with capitalized words for class and method names.
camelCase
Naming convention with a lowercase first letter for variables.
const
Declares a constant value that cannot be changed.
readonly
Declares a field that can be assigned only once.
Implicit conversion
Automatic conversion when there is no data loss risk.
Explicit conversion
Casting required when converting to a smaller type or risking data loss.
Casting
Explicit type conversion using syntax such as (Type) value.
Value types
Types that store data directly such as int float bool and char.
Reference types
Types that store references to data such as string object arrays and classes.
int
Most common integer type four bytes with range minus 2 147 483 648 to 2 147 483 647.
long
Larger integer type for bigger numbers.
short
Smaller integer type for compact ranges.
byte
Unsigned 8 bit integer.
float
Floating point type using four bytes with an f suffix on literals.
double
Default floating point type with higher precision.
decimal
High precision floating type used for financial calculations.
f suffix
Suffix f on numeric literals to denote a float such as 3.14f.
bool
Boolean type with true or false values.
char
Unicode character type using single quotes such as 'A'.
string
Sequence of characters and a reference type defined with double quotes.
Immutability
Strings are immutable and operations return a new string.
Length
Property on string that returns the number of characters.
ToUpper
Converts a string to uppercase.
ToLower
Converts a string to lowercase.
Substring
Returns a portion of a string.
const double PI
Example of a constant declaration for a numeric value.
Modeless form
A form shown with Show that does not block interaction with other forms.
Modal form
A form shown with ShowDialog that blocks until closed.
ListBox
Control that displays a list of items for selection.
ComboBox
Control that shows a dropdown list and may allow text input.
CheckBox
Control for binary selections with multiple boxes allowed.
Items.Add
Adds an item to a list control items collection.
Items.Remove
Removes a specific item from a list control items collection.
Items.Clear
Removes all items from a list control.
SelectedIndexChanged
Event fired when the selected index changes.
DropDownStyle
Property that controls how a combo box displays its list.
SelectedItem
Property representing the currently selected item.
SelectedIndex
Property representing the index of the current selection.
Label
A control that displays text often named lblName.
Button
A clickable control often named btnSubmit.
PasswordChar
Property on a TextBox that masks input such as an asterisk.