Nothing Special   »   [go: up one dir, main page]

Unit - 3 - Class Libraries

Download as pdf or txt
Download as pdf or txt
You are on page 1of 14

Unit -3 .

NET Framework Class Library

.NET Framework Class Library


• NET Framework Class Library is the
collection of classes, namespaces, interfaces
and value types that are used for .NET
applications.

• It contains thousands of classes that supports


the following functions.
1. Base and user-defined data types,
2. Support for exceptions
3. handling input/output and stream operations.

1-May-21 Progress Through Quality Education 1


Unit -3 .NET Framework Class Library

4. Communications with the underlying


system
5.Access to data
6.Ability to create Windows-based GUI
applications
7.Ability to create web-client and server
applications
8.Support for creating web services

1-May-21 Progress Through Quality Education 2


Unit -3 .NET Framework Class Library

• .NET Framework Class Library


Namespaces
• Following are the commonly used
namespaces that contains useful
classes and interfaces and defined in
Framework Class Library.

System
• It includes all common data types,
string values, arrays and methods for
data conversion.

1-May-21 Progress Through Quality Education 3


Unit -3 .NET Framework Class Library

• System.Data, System.Data.Common, System.Data.OleDb,


System.Data.SqlClient, System.Data.SqlTypes
– These are used to access a database, perform commands on a
database and retrieve database.

• System.IO,
System.DirectoryServices,System.IO.IsolatedStorage
– These are used to access, read and write files.

• System.Diagnostics
– It is used to debug and trace the execution of an application

1-May-21 Progress Through Quality Education 4


Unit -3 .NET Framework Class Library

• System.Net, System.Net.Sockets
– These are used to communicate over
the Internet when creating peer-to-
peer applications.

• System.Windows.Forms,
ystem.Windows.Forms.Design
– These namespaces are used to create
Windows-based applications using
Windows user interface component

1-May-21 Progress Through Quality Education 5


Unit -3 .NET Framework Class Library

• System.Web, System.WebCaching,
System.Web.UI,
System.Web.UI.Design,
System.Web.UI.WebControls,
System.Web.UI.HtmlControls,
System.Web.Configuration,
System.Web.Hosting,
System.Web.Mail,
System.Web.SessionState
– These are used to create ASP. NET
Web applications that run over the
web.

1-May-21 Progress Through Quality Education 6


Unit -3 .NET Framework Class Library

• System.Web.Services,
System.Web.Services.Description,
System.Web.Services.Configuration
, System.Web.Services.Discovery,
System.Web.Services.Protocols

– These are used to create XML


Web services and components that
can be published over the web

1-May-21 Progress Through Quality Education 7


Unit -3 .NET Framework Class Library

• System.Security, System.Security.Permissions,
System.Security.Policy, System.WebSecurity,
System.Security.Cryptography
– These are used for authentication, authorization,
and encryption purpose

• System.Xml, System.Xml.Schema,
System.Xml.Serialization, System.Xml.XPath,
System.Xml.Xsl
– These namespaces are used to create and access
XML files.

1-May-21 Progress Through Quality Education 8


Unit -3 .NET Framework Class Library

• What Does Framework Class Library (FCL) Mean?


• The Framework class library (FCL) is a comprehensive collection
of reusable types including classes, interfaces and data types
included in the .NET Framework to provide access to system
functionality.

The .NET FCL forms the base on which applications, controls and
components are built in .NET. It can be used for developing
applications such as console applications, Windows GUI
applications, ASP.NET applications, Windows and Web services,
workflow-enabled applications, service oriented applications using
Windows

1-May-21 Progress Through Quality Education 9


Unit -3 .NET Framework Class Library

• Communication, XML Web services, etc.

• The reusable types of FCL provide a simple interface to developers


due to:
Their self-documenting nature
• Lesser learning curve to understand the framework, which expedites
and optimizes the development process.

• Seamless integration of third-party components with classes in FCL


• FCL acts as a standard library, which can be used in a consistent
manner by all the .NET languages and common language compliant
(CLC-compliant) compilers.

1-May-21 Progress Through Quality Education 10


Unit -3 .NET Framework Class Library

• The .NET FCL is the key component of .NET framework. It


provides core functionalities of .NET architecture, which include:

• Base data types


• Object type
• Implementation of data structures
• Garbage collection
• Security, data access and database connectivity
• Network communications
• Support for implementing rich client GUI for both Windows and
Web-based applications

1-May-21 Progress Through Quality Education 11


Unit -3 .NET Framework Class Library

• The .NET FCL is integrated with the


Common Language Runtime (CLR)
of the Framework, which manages
the code execution. Its classes
follow the object model as used by
the Intermediate Language (IL) and
are based on single inheritance. The
classes and interfaces are grouped
into namespaces so that they can be
accessed easily.

1-May-21 Progress Through Quality Education 12


Unit -3 .NET Framework Class Library

• What is a dll file ?


• A .dll file contains compiled code we can use in our application to perform
specific program functions and may be required by another application or
module (such as .exe or .dll) to load it through an entry point.
• It is a library that contains code and data that can be used by more than one
program at the same time.
• It helps promote modularization of code, code reuse, efficient memory usage,
and reduced disk space.

• So the operating system and the programs load faster, run faster, and take less
disk space on the computer.

1-May-21 Progress Through Quality Education 13


Unit -3 .NET Framework Class Library

• What is .Net dll ?


• When we implement a .Net DLL (Assembly) in .NET Languages such as C# or
VB.NET we produce a Managed Assembly.

• Managed Assembly is the component standard specified by the .NET. Hence,


.Net assemblies are understandable only to Microsoft.NET and can be used
only in .NET managed applications. A manage assembly contains managed
code and it is executing by the .NET Runtime. When we create a DLL with
C++ we produce a win32/Com DLL. If we use this dll in a .NET Language, the
Visual Studio create automatically an INTEROP file for we, so we can call the
"unmanaged" dll from manage code .

1-May-21 Progress Through Quality Education 14

You might also like