In the .NET Framework, which component provides an extensible set of reusable classes accessible from any .NET-compliant language?
C# Programming
.NET Framework
Difficulty: Easy
Choose an option
-
A.NET class libraries
-
BCommon Language Runtime (CLR)
-
CCommon Language Infrastructure (CLI)
-
DComponent Object Model (COM)
-
ECommon Type System (CTS)
Answer
Correct Answer: .NET class libraries
Explanation
Introduction / Context:The .NET Framework includes a large, language-agnostic library developers can use across C#, VB.NET, F#, and other languages.
Given Data / Assumptions:
- We are comparing framework components by responsibility.
- Only one option refers to the reusable class library.
Concept / Approach:The Base Class Library (BCL) and Framework Class Library (FCL) provide collections, I/O, networking, threading, and more, exposed uniformly via the Common Type System.
Step-by-Step Solution:
Identify the component that contains reusable classes: the .NET class libraries (BCL/FCL).CLR executes code and provides services; it is not the class library.CLI describes the overall specification, not the concrete library implementation.COM is a separate, older component model and not the .NET library.CTS defines types and rules; it does not contain implementations.Verification / Alternative check:Any .NET language can reference the same assemblies that implement the class libraries.
Why Other Options Are Wrong:
- CLR: runtime execution engine, not the library itself.
- CLI: specification, not an implementation library.
- COM: legacy technology outside .NET’s managed library.
- CTS: type system rules, not reusable classes.
Common Pitfalls:Conflating the runtime (CLR) with the class libraries.
Final Answer:.NET class libraries