General Flashcards
.NET Overview
.NET is a free, cross-platform framework for building various types of applications.
CLR (Common Language Runtime)
The CLR is the virtual machine component of .NET that manages the execution of .NET programs.
BCL (Base Class Library)
The BCL provides foundational classes for handling system-level and common operations in .NET.
C# Language
C# is a statically-typed, object-oriented language primarily used with the .NET framework.
.NET Core vs .NET Framework
.NET Core is cross-platform, while .NET Framework works only on Windows.
Solution and Project Structure
A solution is a container for organizing multiple projects in Visual Studio.
Data Types
Data types in C# define the kind of data (e.g., int, string, bool) that a variable can hold.
Control Flow
Control flow statements (if, else, switch) determine the direction of execution in code.
OOP Principles
OOP in .NET includes encapsulation, inheritance, polymorphism, and abstraction.
Methods
Methods in C# are blocks of code that perform a specific task and can return a value.
LINQ (Language Integrated Query)
LINQ allows querying collections in a readable, SQL-like manner directly in C#.
Exceptions
Exceptions in .NET are runtime errors that can be caught and handled using try-catch blocks.
Asynchronous Programming
Async programming in .NET is done using async and await keywords to improve performance.
File I/O
File I/O in .NET involves reading from and writing to files using classes like Stream and File.
Entity Framework Core
Entity Framework Core is an ORM for working with databases using .NET code.