Introduction Flashcards
What are the two main components of the .NET framework?
Class Library and
Common Language Runtime (CLR)
What is the Common Language Runtime (CLR)?
The CLR is a virtual machine (software that manages the execution of programs and hides from them the underlying operating system and hardware).
It is responsible for managing the execution of .NET programs regardless of any .NET programming language.
What is the Framework Class Library (FCL)?
It is the collection of reusable, object-oriented class libraries, also called the Assemblies.
It is just like the header files in C/C++ and packages in Java.
What were the three types of applications?
WinForms: Windows Form-based applications.
ASP.NET: Web-based applications come under this category.
ADO.NET: It includes the application which are developed to communicate with the database like MS SQL Server, Oracle etc.
What is WPF?
Windows Presentation Foundation (WPF) is a graphical subsystem given by Microsoft which uses DirectX and is used in Windows-based applications for rendering UI (User Interface).
What is WCF?
Windows Communication Foundation (WCF) is used to communicate with cross-platform applications and to
develop network distributed applications.
What is LINQ?
Language Integrated Query (LINQ) is a query language used to query the data sources with different .NET programming languages.
LINQ enables us to query any type of data source (databases, files, collections etc.).
Another benefit of using LINQ is that it provides IntelliSense and compile-time error checking.
What is Common Type System (CTS)?
Common Type System (CTS) describes a set of types that can be used in different .NET languages in common.
What is the garbage collection(GC)?
CLR also contains the Garbage Collector (GC), which runs in a low-priority thread and checks for un-referenced, dynamically allocated memory space.
If it finds some data that is no longer referenced by any
variable/reference, it re-claims it and returns it to the OS.
Why is C# so popular and in demand?
- Easy to Start
- Widely used for developing Desktop and Web Application
- Community
- Game Development
What are some characteristics of .NET Core?
- Cross platform: can run on different operating systems.
- Consistent Across Architectures: Runs your code with the same behavior on multiple architectures.
- Command-line Tools: Includes easy-to-use command-line tools that can be used for local development.
- Flexible Deployment: Can be included in your app or installed side-by-side user- or machine-wide
- Compatible: .NET Core is compatible with .NET Framework, Xamarin and Mono, via .NET Standard.
- Open-Source: The .NET Core platform is open source, using MIT and Apache licenses. .Net Core is .NET Foundation project.
What is Visual Studio IDE?
Visual Studio IDE (Integrated Development Environment) is the
Development Environment for all .NET based applications.
What is an Identifier?
An identifier is a name used to identify a class, variable, method, or any other user-defined item.
What are keywords?
Keywords are reserved words predefined to the C# compiler.
get and set are contextual keywords.
What is Type Inference?
Used through the var keyword, the compiler “infers” what the type of the variable is by what the variable is initialized to.
example.
var number = 10;
number is recognized as an int.