Friday, 26 August 2011

The .NET Class Framework

The .NET Class Framework. In conjunction with the CLR,
the Microsoft has developed a comprehensive set of framework classes, several of
which are shown below:
Since the .NET Class Framework contains literally thousands of types, a set of related
types is presented to the developer within a single namespace. For example, the
System namespace (which you should be most familiar with) contains the Object
base type, from which all other types ultimately derive. In addition the System
namespace contains types of integers, characters, strings, exception handling, and
console I/O’s as well as a bunch of utility types that convert safely between data
types, format data types, generate random numbers, and perform various math
functions. All applications use types from System namespace.
To access any platform feature, you need to know which namespace contains the
type that exposes the functionality you want. If you want to customize the behavior
of any type, you can simply derive your own type from the desired .NET framework
type. The .NET Framework relies on the object-oriented nature of the platform to
present a consistent programming paradigm to software developers. It also enables
you to create your own namespaces containing their own types, which merge
seamlessly into the programming paradigm. This greatly simplifies the Software
The table below lists some of the general namespaces, with a brief description of
what the classes in that namespace is used for:
Namespace Purpose of Class
System All the basic types used by every application.
System.Collections Managing collections of objects. Includes the
popular collection types such as Stacks, Queues,
HashTables etc.
System.Diagnostics Instrumenting and Debugging your application.
System.Drawing Manipulating 2D graphics. Typically used for
Windows Forms applications and for creating
Images that are to appear in a web form.
System.EnterpriseServices Managing Transactions, queued components,
object pooling, just-in-time activation, security
and other features to make use of managed code
more efficient on the server.
System.Globalization National Language Support(NLS), such as string
compares, formatting and calendars.
System.IO Doing Stream I/O, walking directories and files.
System.Management Managing other computers in the enterprise via
System.Net Network Communications.
System.Reflection Inspecting metadata and late binding of types and
their members.
System.Resources Manipulating external data resources.
System.Runtime.InteropServices Enabling managed code to access unmanaged OS
platform facilities, such as COM components and
functions in Win32 DLLs.
System.Runtime.Remoting Accessing types remotely.
System.Runtime.Serilization Enabling instances of objects to be persisted and
regenerated from a stream.
System.Security Protecting data and resources.
System.Text Working with Text in different encodings, like
ASCII or Unicode.
System.Threading Performing asynchronous operations and
synchronizing access to resources.
System.Xml Processing XML Schemas and data.
In addition to the general namespace the .Net Class Framework offers namespaces
whose types are used for building specific application types. The table below lists
some of the application specific namespaces:

Namespace Purpose of Types

System.Web.Services Building web services
System.Web.UI Building web forms.
System.Windows.Forms Building Windows GUI applications.
System.ServiceProcess Building a windows service controllable by Service
Control Manager.
Refer the following link for .NET framework class library.

No comments:

Post a Comment