C# glossary: Journeyman level

59 C# terms at the Journeyman level, each with a short definition and a link to its full page.

Updated

Study these as flash cards

[Fact] and [Theory]
Defines an xUnit unit test that has no inputs.
[Theory]
An xUnit a unit test with input parameters.
Auto-Implemented Property
A property whose hidden backing field is generated by the compiler.
Base Class
The class from which another class inherits.
Base Class Member
A constructor, method, property, or field inherited or accessed from a base class.
catch Block
A block that handles a matching exception from its try block.
Composition
Building a class from other objects that handle parts of its work.
Constructor
Special class code that initializes a new object.
Constructor Chaining
Calling another constructor so initialization logic can be reused.
Custom Exception
An application-specific exception type created by extending an exception class.
DateTime
A value type representing a date and time, optionally related to local time or UTC.
Default Constructor
A no-argument constructor supplied by the compiler when a class declares none.
Default Interface Method
An interface member with an implementation inherited by implementing types.
Derived Class
A class that inherits from another class.
Encapsulation
Keeping an object's data behind methods that control how it is read or changed.
Equals()
A method used to test whether two objects have equal content.
Exception
An object describing a problem that interrupts normal program flow.
Exception Handling
Using try, catch, and related statements to respond to failures.
File
A static class containing methods for creating, reading, writing, and managing files.
File Input/Output
Reading data from files and writing data to files.
finally Block
A block that normally runs after try and catch whether an exception occurred or not.
GetHashCode()
A method that produces an integer used by hash-based collections.
Getter
A method that returns an object's stored value.
Inheritance
Creating a class that receives accessible members from another class.
Instance
A particular object created from a class.
Interface
A contract describing behavior that implementing classes agree to provide.
internal
An access modifier limiting a type or member to the same assembly.
is Pattern
An is expression that tests a value against a type or another pattern.
JSON Serialization
Converting an object to JSON text or reconstructing an object from JSON.
Method Overriding
Providing a subclass version of an inherited instance method.
Moq and NSubstitute
.NET libraries for creating mocks.
new Operator
An operator that creates an object or array and returns its reference.
Nullable Value Type
A value type followed by ? that can also hold null.
Null-Coalescing Operator
The ?? operator, which uses a fallback when its left value is null.
Null-Conditional Operator
The ?. operator, which accesses a member only when the value is not null.
Object
A class instance that combines its own state with available behavior.
Object Equality
The rules that decide when two objects should count as having the same value.
Path
A string or path-like value identifying a location in a filesystem.
Pattern Matching
Testing a value's type, shape, or contents while optionally extracting parts of it.
Polymorphism
Using one declared type to work with objects that provide different implementations.
private
An access modifier that lets a member be used only inside the class or struct that declares it.
Property
A member that exposes a value through get and set accessors.
protected
An access modifier that lets a member be used inside its own class and in classes that inherit from it.
public
An access modifier that makes a type or member broadly accessible.
Regular Expression
A text pattern used to find, validate, or replace matching characters.
Sealed Method
An overridden method that further derived classes cannot override again.
Serialization
Converting an object's state into data that can be stored or transferred.
Setter
A method that validates or changes an object's stored value.
Shouldly and FluentAssertions
A .NET library used to write human-friendly assertions.
Stack Trace
A report showing the active method calls at the point an error occurred.
StreamReader
A reader that converts bytes from a stream into text characters.
StreamWriter
A writer that converts text characters into bytes for a stream.
this
A reference to the current object inside its instance code.
throw
A statement that deliberately raises an exception object.
ToString()
A method that returns a readable text representation of an object.
try Block
A block containing code that may throw an exception.
using Statement
A statement that disposes a resource automatically when execution leaves its scope.
Virtual Method
A method that derived classes are allowed to override.
XML Documentation Comment
A structured /// comment used to generate documentation for C# code.

Every C# term, by level