Study Day Two Flashcards
What are Generics?
Feature that allows you to define classes, interfaces, methods, and delegates in a way that can work with various data types. Generics enable you to create reusable and type-safe code, improving the maintainability and performance of your applications.
What are Nullable Types?
Value types that can be set to null such as int, float, bool
These can be set to null using a ‘?’ called null-condition operator or Elvis operator
What is Lambda?
Are inline functions
Used to define anonymous methods and assign them to delegates or events
LINQ Queries
Sorting
Filtering
Asynchronous Programming
What are Enums?
Short for enumerations, are value types that define a set of named constants, representing a finite list of related values.
What is LINQ?
Language integrated Query, provides a unified query syntax for querying and manipulating data from various data sources, such as collections, arrays, databases, XML documents, and more.
Query Syntax: like SQL
Method Syntax: uses extentions by LINQ library, uses lambda expressions to define the query logic.
What are Attributes
A way to add metadata, declarative information, or behavior to various program elements. Provide a standardized and extensible mechanism to add additional information to code elements without modifying the underlying structure or behavior of the code.
Delegates and Events
A Delegate is a type that represents references to methods with a specific signature.
Events provide a standardized way of subscribing to and handling notifications, ensuring that subscribers do not interfere with each other.