World Library  
Flag as Inappropriate
Email this Article

Standard Libraries (CLI)

Article Id: WHEBN0042463613
Reproduction Date:

Title: Standard Libraries (CLI)  
Author: World Heritage Encyclopedia
Language: English
Subject: Common Language Infrastructure, .NET Framework, Framework Class Library, Manifest (CLI), List of CIL instructions
Publisher: World Heritage Encyclopedia

Standard Libraries (CLI)

The Standard Libraries are the standard libraries of the Common Language Infrastructure (CLI). The CLI includes the Standard Libraries in order to encapsulate a large number of common functions, such as file reading and writing, XML document manipulation, exception handling, application globalization, network communication, threading and reflection, which makes the programmer's job easier. It is much larger in scope than standard libraries for most other languages, including C++, and is comparable in scope and coverage to the standard libraries of Java. The Framework Class Library (FCL) is the origin of the Standard Libraries as the .NET Framework, which includes the FCL, is the first implementation of the CLI.


The main standard libraries are organized into two Standard Profiles, the Kernel Profile and the Compact Profile.[1] The following standard libraries do not belong to any profile: the Extended Array Library, the Extended Numerics Library, the Parallel Library and the Vararg Library.[2][3][4][5]

Kernel Profile

The Kernel Profile is a subset of the Compact Profile. The Kernel Profile contains the Base Class Library (BCL) and Runtime Infrastructure Library.[6]

Compact Profile

The Compact Profile is a superset of the Kernel Profile. The Compact Profile contains the Network Library, the Reflection Library and the XML Library.[7]


Base Class Library

The Base Class Library is a simple runtime library for modern programming languages. It serves as the Standard for the runtime library for the language C# as well as one of the CLI Standard Libraries. It provides types to represent the built-in data types of the CLI, simple file access, custom attributes, security attributes, string manipulation, formatting, streams, collections, among other things.[8] It defines types in the following namespaces:

Defines the Object class which all reference type objects derive from (including value-type objects) and the ValueType class which all value type objects derive from. It also defines the base data types like integers, floating point numbers, character, strings, Boolean, enumeration and more. Support for the environment and platform and a command-line interface is provided along with base classes for exceptions and attributes. It defines arrays and delegates, mathematical functions and many other types.
Defines many common container types used in programming, such as dictionaries, hashtables, lists, queues and stacks.
Defines generic types of the container types in the System.Collections namespace.
Defines types that provide the ability to diagnose applications. It includes event logging, performance counters, tracing and interaction with system processes.
Defines types that define culture-related information, including language, country/region, calendars in use, format patterns for dates, currency and numbers and sort order for strings.
Defines type that enable reading from and writing to different streams, such as files or other data streams. Also provides a connection to the file system.
Defines types that represent the security system and permissions.
Defines types that control access to operations and resources based on policy.
Defines types that support various character encodings, regular expressions and a more efficient mechanism for manipulating strings.
Defines types that enable multithreaded programming.

Runtime Infrastructure Library

The Runtime Infrastructure Library provides the services needed by a compiler to target the CLI and the facilities needed to dynamically load types from a stream in a specified file format.[9] It defines types in the following namespaces:

Defines types for the application domain, pointers, handles and more.
Defines types that provide a managed view of loaded types, methods and fields, and that can dynamically create and invoke types. These types are relevant to the program runtime.
Defines types that provide functionality for compiler writers who use managed code to specify attributes in metadata that affect the run-time behavior of the Virtual Execution System.
Defines types that support Platform Invocation Services (P/Invoke).

Network Library

The Network Library provides simple networking services including direct access to network ports as well as HTTP support.[10] It defines types in the following namespaces:

Defines types that provide an object representation of a uniform resource identifier (URI) and easy access to the parts of the URI.
Defines specialized and strongly-typed collections; for example, a linked list dictionary, a bit vector, and collections that contain only strings.
Defines types that provide a simple programming interface for a number of network protocols.
Defines type that provide a managed implementation of the Windows Sockets (Winsock) interface for developers who need to tightly control access to the network.

Reflection Library

The Reflection Library provides the ability to examine the structure of types, create instances of types and invoke methods on types, all based on a description of the type.[11] It defines types in the following namespaces:

Defines the void type, a return value type for a method that does not return a value.
Defines type that provide information about a specific culture (called a locale for unmanaged code development). The information includes the names for the culture, the writing system, the calendar used and formatting for dates and sort strings.
Defines types that provide a managed view of loaded types, methods and fields, and that can dynamically create and invoke types.
Defines types that control access to operations and resources based on policy. These types are relevant to the reflection.

XML Library

The XML Library provides a simple "pull-style" parser for XML. It is designed for resource-constrained devices, yet provides a simple user model.[12] It defines types in the following namespace.

Defines types for processing XML.

Extended Array Library

The Extended Array Library provides support for non-vector arrays. That is, arrays that have more than one dimension or arrays that have non-zero lower bounds.[2] The Extended Array Library doesn't add any extra types, but it does extend the array-handling mechanism.[13]

Extended Numerics Library

The Extended Numerics Library provides support for floating-point (System.Single, System.Double) and extended-precision (System.Decimal) data types. Like the Base Class Library, this library is directly referenced by the C# standard.[3]

Parallel Library

The Parallel Library provides easy parallelism for non-expert programmers, so that multithreaded CPUs can be exploited.[4]

Vararg Library

The Vararg Library provides support for dealing with variable-length argument lists.[5]

See also


  1. ^
  2. ^ a b
  3. ^ a b
  4. ^ a b
  5. ^ a b
  6. ^
  7. ^
  8. ^
  9. ^
  10. ^
  11. ^
  12. ^
  13. ^

External links

  • Ecma International, Standard ECMA-335, Common Language Infrastructure (CLI), 6th edition (June 2012)
  • Ecma International, Technical Report TR/84, Common Language Infrastructure (CLI) - Information Derived from Partition IV XML File, 6th edition (June 2012)
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.

Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.