SlideShare a Scribd company logo
.NET Base Type (CTS Data
Type)
VB.NET Keyword C# Keyword Managed Extensions for C++
Keyword
System.Byte Byte byte unsigned char
System.SByte SByte sbyte signed char
System.Int16 Short short short
System.Int32 Integer int int or long
System.Int64 Long long __int64
System.UInt16 UShort ushort unsigned short
System.UInt32 UInteger uint unsigned int or unsigned long
System.UInt64 ULong ulong unsigned __int64
System.Single Single float Float
System.Double Double double Double
System.Object Object object Object^
System.Char Char char wchar_t
System.String String string String^
System.Decimal Decimal decimal Decimal
System.Boolean Boolean bool Bool
Intrinsic CTS Data Types
CTS provide a well-defined set of intrinsic data types used by all .NET aware languages.
Understanding Common Language Specification
' VB .NET method returning nothing.
Public Sub MyMethod()
' Some code...
End Sub
// C# method returning nothing.
public void MyMethod()
{
// Some code...
}
Different languages express the same programming constructs in
unique, language specific terms.
C# uses (+) operator for string concatenation while in VB .NET we use
the ampersand (&).
The Common Language Specification (CLS) is a set of rules that describe the small and
complete set of features.
These features are supported by a .NET-aware compiler to produce a code that can be
hosted by CLR. Also, this code can be accessed by all languages in the .NET platform.
The CLS can be viewed as a subset of the full functionality defined by the CTS.
public class Calc
{
// Exposed unsigned data is not CLS compliant!
public ulong Add(ulong x, ulong y)
{
return x + y;
}
}
public class Calc
{
public int Add(int x, int y)
{
// As this ulong variable is
only used internally,
// we are still CLS compliant.
ulong temp;
temp= x+y;
return temp;
}
}
.NET source code
written in
some .NET-aware
Language
Base Class
Libraries
(mscorlib.dll and
so on)
Some .NET compiler
DLL or EXE Assembly
(CIL, Metadata and
Manifest)
.NET Execution Engine (mscoree.dll)
Class Loader
Jitter
Platform-Specific
Instructions
Execute the
application
Understanding Common Language Runtime
The root of the CLR is physically
represented by a library named
mscoree.dll (Common Object
Runtime Execution Engine).
mscoree.dll is loaded automatically,
which in turn loads the required
assembly into memory.
The CLR then lays out the type in
memory, compiles the associated
CIL into platform-specific
instructions, performs any necessary
security checks, and then executes
the code in question.
A Tour of the .NET Namespaces
A namespace is a grouping of related types contained in an assembly. In other
words, namespace is a way to group semantically related types (classes,
enumerations, interfaces, delegates and structures) under a single umbrella.
For example, the System.IO namespace contains file I/O related types, the
System.Data namespace defines basic database types, and so on.
For example, consider following programs written in C#, VB.NET and MC++.
// C# code
using System;
public class Test
{
public static void Main()
{
Console.WrtieLine(“Hello World”);
}
}
// VB.NET code
Imports System
Public Module Test
Sub Main()
Console.WrtieLine(“Hello World”)
End Sub
End Module
// MC++ code
#using <mscorlib.dll>
using namespace System;
void Main()
{
Console::WrtieLine(“Hello World”);
}
.NET Namespace Meaning
System System contains numerous useful types dealing with intrinsic data,
mathematical computations, random number generation,
environment variables, and garbage collection, as well as a number of
commonly used exceptions and attributes.
System.Collections These namespaces define a number of stock container objects
System.Collections.Generic (ArrayList, Queue etc), as well as base types and interfaces that allow
you to build customized collections. As of .NET 2.0, the collection
types have been extended with generic capabilities.
System.IO
System.IO.Compression
System.IO.Ports
These namespaces include file I/O, buffering, and so forth. As of .NET
2.0, the IO namespaces now include support compression and port
manipulation.
System.Net This namespace (as well as other related namespaces) contains types
related to network programming (requests/responses, sockets, end
points, and so on).
System.Security Security is an integrated aspect of the .NET universe. In the security-
centric namespaces you find numerous types dealing with
permissions, cryptography, and so on.
System.Threading This namespace defines types used to build multithreaded
applications.
System.Web A number of namespaces are specifically geared toward the
development of .NET web applications, including ASP.NET and XML
web services.
System.Windows.Forms This namespace contains types that facilitate the construction of
traditional desktop GUI applications.
System.Xml The XML-centric namespaces contain numerous types used to interact
with XML data.
Accessing a Namespace Programmatically
A namespace is a convenient way to logically understand and organize related types. Consider
the System namespace.
In C#, the using keyword simplifies the process of referencing types defined in a particular
namespace.
using System; // General base class library types.
using System.Drawing; // Graphical rendering types.
class MyApp
{
public void DisplayLogo()
{
// create a 20x20 pixel bitmap.
Bitmap bm = new Bitmap(20, 20);
...
}
}
As this application is referencing System.Drawing, the compiler is able to resolve
the Bitmap class as a member of this namespace.
Microsoft provides a setup package named dotnetfx.exe that can be freely shipped and installed along with your
custom software.
Once dotnetfx.exe is installed, the target machine will now contain the .NET base class
libraries, .NET runtime (mscoree.dll), and additional .NET infrastructure (such as the GAC, Global
Assembly Cashe).
Deploying the .NET Runtime
Ad

More Related Content

Similar to C# And Data types itrodu ction to C# fucntins (20)

C Sharp Jn
C Sharp JnC Sharp Jn
C Sharp Jn
jahanullah
 
C Sharp Jn
C Sharp JnC Sharp Jn
C Sharp Jn
guest58c84c
 
.Net Session Overview
.Net Session Overview.Net Session Overview
.Net Session Overview
Logu Thanigachalam
 
The Philosophy of .Net
The Philosophy of .NetThe Philosophy of .Net
The Philosophy of .Net
Vahid Farahmandian
 
ASP.NET Session 2
ASP.NET Session 2ASP.NET Session 2
ASP.NET Session 2
Sisir Ghosh
 
.Net slid
.Net slid.Net slid
.Net slid
pacatarpit
 
Introduction to Visual Studio.NET
Introduction to Visual Studio.NETIntroduction to Visual Studio.NET
Introduction to Visual Studio.NET
Dutch Dasanaike {LION}
 
Inside .net framework
Inside .net frameworkInside .net framework
Inside .net framework
Faisal Aziz
 
C# Unit 1 notes
C# Unit 1 notesC# Unit 1 notes
C# Unit 1 notes
Sudarshan Dhondaley
 
CSharp_01_CLROverview_and Introductionc#
CSharp_01_CLROverview_and Introductionc#CSharp_01_CLROverview_and Introductionc#
CSharp_01_CLROverview_and Introductionc#
Ranjithsingh20
 
C#_01_CLROverview.ppt
C#_01_CLROverview.pptC#_01_CLROverview.ppt
C#_01_CLROverview.ppt
MarcEdwards35
 
Common language runtime clr
Common language runtime clrCommon language runtime clr
Common language runtime clr
SanSan149
 
Dotnet interview qa
Dotnet interview qaDotnet interview qa
Dotnet interview qa
abcxyzqaz
 
Net framework
Net frameworkNet framework
Net framework
mayankingeniar
 
.Net framework
.Net framework.Net framework
.Net framework
EzraKemboi1
 
Namespaces in C#
Namespaces in C#Namespaces in C#
Namespaces in C#
yogita kachve
 
.Net framework components by naveen kumar veligeti
.Net framework components by naveen kumar veligeti.Net framework components by naveen kumar veligeti
.Net framework components by naveen kumar veligeti
Naveen Kumar Veligeti
 
DOT NET Framework.pptxdsfdsfdsfsdfdsfdsfdsf
DOT NET Framework.pptxdsfdsfdsfsdfdsfdsfdsfDOT NET Framework.pptxdsfdsfdsfsdfdsfdsfdsf
DOT NET Framework.pptxdsfdsfdsfsdfdsfdsfdsf
zmulani8
 
Introductionto .netframework by Priyanka Pinglikar
Introductionto .netframework by Priyanka PinglikarIntroductionto .netframework by Priyanka Pinglikar
Introductionto .netframework by Priyanka Pinglikar
PriyankaPinglikar
 
.NET TECHNOLOGIES
.NET TECHNOLOGIES.NET TECHNOLOGIES
.NET TECHNOLOGIES
Prof Ansari
 
ASP.NET Session 2
ASP.NET Session 2ASP.NET Session 2
ASP.NET Session 2
Sisir Ghosh
 
Inside .net framework
Inside .net frameworkInside .net framework
Inside .net framework
Faisal Aziz
 
CSharp_01_CLROverview_and Introductionc#
CSharp_01_CLROverview_and Introductionc#CSharp_01_CLROverview_and Introductionc#
CSharp_01_CLROverview_and Introductionc#
Ranjithsingh20
 
C#_01_CLROverview.ppt
C#_01_CLROverview.pptC#_01_CLROverview.ppt
C#_01_CLROverview.ppt
MarcEdwards35
 
Common language runtime clr
Common language runtime clrCommon language runtime clr
Common language runtime clr
SanSan149
 
Dotnet interview qa
Dotnet interview qaDotnet interview qa
Dotnet interview qa
abcxyzqaz
 
.Net framework components by naveen kumar veligeti
.Net framework components by naveen kumar veligeti.Net framework components by naveen kumar veligeti
.Net framework components by naveen kumar veligeti
Naveen Kumar Veligeti
 
DOT NET Framework.pptxdsfdsfdsfsdfdsfdsfdsf
DOT NET Framework.pptxdsfdsfdsfsdfdsfdsfdsfDOT NET Framework.pptxdsfdsfdsfsdfdsfdsfdsf
DOT NET Framework.pptxdsfdsfdsfsdfdsfdsfdsf
zmulani8
 
Introductionto .netframework by Priyanka Pinglikar
Introductionto .netframework by Priyanka PinglikarIntroductionto .netframework by Priyanka Pinglikar
Introductionto .netframework by Priyanka Pinglikar
PriyankaPinglikar
 
.NET TECHNOLOGIES
.NET TECHNOLOGIES.NET TECHNOLOGIES
.NET TECHNOLOGIES
Prof Ansari
 

Recently uploaded (20)

QA/QC Manager (Quality management Expert)
QA/QC Manager (Quality management Expert)QA/QC Manager (Quality management Expert)
QA/QC Manager (Quality management Expert)
rccbatchplant
 
Compiler Design_Lexical Analysis phase.pptx
Compiler Design_Lexical Analysis phase.pptxCompiler Design_Lexical Analysis phase.pptx
Compiler Design_Lexical Analysis phase.pptx
RushaliDeshmukh2
 
Artificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptxArtificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptx
aditichinar
 
Smart_Storage_Systems_Production_Engineering.pptx
Smart_Storage_Systems_Production_Engineering.pptxSmart_Storage_Systems_Production_Engineering.pptx
Smart_Storage_Systems_Production_Engineering.pptx
rushikeshnavghare94
 
ELectronics Boards & Product Testing_Shiju.pdf
ELectronics Boards & Product Testing_Shiju.pdfELectronics Boards & Product Testing_Shiju.pdf
ELectronics Boards & Product Testing_Shiju.pdf
Shiju Jacob
 
15th International Conference on Computer Science, Engineering and Applicatio...
15th International Conference on Computer Science, Engineering and Applicatio...15th International Conference on Computer Science, Engineering and Applicatio...
15th International Conference on Computer Science, Engineering and Applicatio...
IJCSES Journal
 
Avnet Silica's PCIM 2025 Highlights Flyer
Avnet Silica's PCIM 2025 Highlights FlyerAvnet Silica's PCIM 2025 Highlights Flyer
Avnet Silica's PCIM 2025 Highlights Flyer
WillDavies22
 
Process Parameter Optimization for Minimizing Springback in Cold Drawing Proc...
Process Parameter Optimization for Minimizing Springback in Cold Drawing Proc...Process Parameter Optimization for Minimizing Springback in Cold Drawing Proc...
Process Parameter Optimization for Minimizing Springback in Cold Drawing Proc...
Journal of Soft Computing in Civil Engineering
 
Introduction to FLUID MECHANICS & KINEMATICS
Introduction to FLUID MECHANICS &  KINEMATICSIntroduction to FLUID MECHANICS &  KINEMATICS
Introduction to FLUID MECHANICS & KINEMATICS
narayanaswamygdas
 
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITYADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ijscai
 
Compiler Design Unit1 PPT Phases of Compiler.pptx
Compiler Design Unit1 PPT Phases of Compiler.pptxCompiler Design Unit1 PPT Phases of Compiler.pptx
Compiler Design Unit1 PPT Phases of Compiler.pptx
RushaliDeshmukh2
 
Smart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineeringSmart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineering
rushikeshnavghare94
 
Value Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous SecurityValue Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous Security
Marc Hornbeek
 
The Gaussian Process Modeling Module in UQLab
The Gaussian Process Modeling Module in UQLabThe Gaussian Process Modeling Module in UQLab
The Gaussian Process Modeling Module in UQLab
Journal of Soft Computing in Civil Engineering
 
211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf
211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf
211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf
inmishra17121973
 
Introduction to Zoomlion Earthmoving.pptx
Introduction to Zoomlion Earthmoving.pptxIntroduction to Zoomlion Earthmoving.pptx
Introduction to Zoomlion Earthmoving.pptx
AS1920
 
Fort night presentation new0903 pdf.pdf.
Fort night presentation new0903 pdf.pdf.Fort night presentation new0903 pdf.pdf.
Fort night presentation new0903 pdf.pdf.
anuragmk56
 
fluke dealers in bangalore..............
fluke dealers in bangalore..............fluke dealers in bangalore..............
fluke dealers in bangalore..............
Haresh Vaswani
 
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E..."Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
Infopitaara
 
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G..."Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
Infopitaara
 
QA/QC Manager (Quality management Expert)
QA/QC Manager (Quality management Expert)QA/QC Manager (Quality management Expert)
QA/QC Manager (Quality management Expert)
rccbatchplant
 
Compiler Design_Lexical Analysis phase.pptx
Compiler Design_Lexical Analysis phase.pptxCompiler Design_Lexical Analysis phase.pptx
Compiler Design_Lexical Analysis phase.pptx
RushaliDeshmukh2
 
Artificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptxArtificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptx
aditichinar
 
Smart_Storage_Systems_Production_Engineering.pptx
Smart_Storage_Systems_Production_Engineering.pptxSmart_Storage_Systems_Production_Engineering.pptx
Smart_Storage_Systems_Production_Engineering.pptx
rushikeshnavghare94
 
ELectronics Boards & Product Testing_Shiju.pdf
ELectronics Boards & Product Testing_Shiju.pdfELectronics Boards & Product Testing_Shiju.pdf
ELectronics Boards & Product Testing_Shiju.pdf
Shiju Jacob
 
15th International Conference on Computer Science, Engineering and Applicatio...
15th International Conference on Computer Science, Engineering and Applicatio...15th International Conference on Computer Science, Engineering and Applicatio...
15th International Conference on Computer Science, Engineering and Applicatio...
IJCSES Journal
 
Avnet Silica's PCIM 2025 Highlights Flyer
Avnet Silica's PCIM 2025 Highlights FlyerAvnet Silica's PCIM 2025 Highlights Flyer
Avnet Silica's PCIM 2025 Highlights Flyer
WillDavies22
 
Introduction to FLUID MECHANICS & KINEMATICS
Introduction to FLUID MECHANICS &  KINEMATICSIntroduction to FLUID MECHANICS &  KINEMATICS
Introduction to FLUID MECHANICS & KINEMATICS
narayanaswamygdas
 
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITYADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ijscai
 
Compiler Design Unit1 PPT Phases of Compiler.pptx
Compiler Design Unit1 PPT Phases of Compiler.pptxCompiler Design Unit1 PPT Phases of Compiler.pptx
Compiler Design Unit1 PPT Phases of Compiler.pptx
RushaliDeshmukh2
 
Smart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineeringSmart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineering
rushikeshnavghare94
 
Value Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous SecurityValue Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous Security
Marc Hornbeek
 
211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf
211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf
211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf
inmishra17121973
 
Introduction to Zoomlion Earthmoving.pptx
Introduction to Zoomlion Earthmoving.pptxIntroduction to Zoomlion Earthmoving.pptx
Introduction to Zoomlion Earthmoving.pptx
AS1920
 
Fort night presentation new0903 pdf.pdf.
Fort night presentation new0903 pdf.pdf.Fort night presentation new0903 pdf.pdf.
Fort night presentation new0903 pdf.pdf.
anuragmk56
 
fluke dealers in bangalore..............
fluke dealers in bangalore..............fluke dealers in bangalore..............
fluke dealers in bangalore..............
Haresh Vaswani
 
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E..."Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
Infopitaara
 
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G..."Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
Infopitaara
 
Ad

C# And Data types itrodu ction to C# fucntins

  • 1. .NET Base Type (CTS Data Type) VB.NET Keyword C# Keyword Managed Extensions for C++ Keyword System.Byte Byte byte unsigned char System.SByte SByte sbyte signed char System.Int16 Short short short System.Int32 Integer int int or long System.Int64 Long long __int64 System.UInt16 UShort ushort unsigned short System.UInt32 UInteger uint unsigned int or unsigned long System.UInt64 ULong ulong unsigned __int64 System.Single Single float Float System.Double Double double Double System.Object Object object Object^ System.Char Char char wchar_t System.String String string String^ System.Decimal Decimal decimal Decimal System.Boolean Boolean bool Bool Intrinsic CTS Data Types CTS provide a well-defined set of intrinsic data types used by all .NET aware languages.
  • 2. Understanding Common Language Specification ' VB .NET method returning nothing. Public Sub MyMethod() ' Some code... End Sub // C# method returning nothing. public void MyMethod() { // Some code... } Different languages express the same programming constructs in unique, language specific terms. C# uses (+) operator for string concatenation while in VB .NET we use the ampersand (&).
  • 3. The Common Language Specification (CLS) is a set of rules that describe the small and complete set of features. These features are supported by a .NET-aware compiler to produce a code that can be hosted by CLR. Also, this code can be accessed by all languages in the .NET platform. The CLS can be viewed as a subset of the full functionality defined by the CTS. public class Calc { // Exposed unsigned data is not CLS compliant! public ulong Add(ulong x, ulong y) { return x + y; } } public class Calc { public int Add(int x, int y) { // As this ulong variable is only used internally, // we are still CLS compliant. ulong temp; temp= x+y; return temp; } }
  • 4. .NET source code written in some .NET-aware Language Base Class Libraries (mscorlib.dll and so on) Some .NET compiler DLL or EXE Assembly (CIL, Metadata and Manifest) .NET Execution Engine (mscoree.dll) Class Loader Jitter Platform-Specific Instructions Execute the application Understanding Common Language Runtime The root of the CLR is physically represented by a library named mscoree.dll (Common Object Runtime Execution Engine). mscoree.dll is loaded automatically, which in turn loads the required assembly into memory. The CLR then lays out the type in memory, compiles the associated CIL into platform-specific instructions, performs any necessary security checks, and then executes the code in question.
  • 5. A Tour of the .NET Namespaces A namespace is a grouping of related types contained in an assembly. In other words, namespace is a way to group semantically related types (classes, enumerations, interfaces, delegates and structures) under a single umbrella. For example, the System.IO namespace contains file I/O related types, the System.Data namespace defines basic database types, and so on. For example, consider following programs written in C#, VB.NET and MC++. // C# code using System; public class Test { public static void Main() { Console.WrtieLine(“Hello World”); } } // VB.NET code Imports System Public Module Test Sub Main() Console.WrtieLine(“Hello World”) End Sub End Module // MC++ code #using <mscorlib.dll> using namespace System; void Main() { Console::WrtieLine(“Hello World”); }
  • 6. .NET Namespace Meaning System System contains numerous useful types dealing with intrinsic data, mathematical computations, random number generation, environment variables, and garbage collection, as well as a number of commonly used exceptions and attributes. System.Collections These namespaces define a number of stock container objects System.Collections.Generic (ArrayList, Queue etc), as well as base types and interfaces that allow you to build customized collections. As of .NET 2.0, the collection types have been extended with generic capabilities. System.IO System.IO.Compression System.IO.Ports These namespaces include file I/O, buffering, and so forth. As of .NET 2.0, the IO namespaces now include support compression and port manipulation. System.Net This namespace (as well as other related namespaces) contains types related to network programming (requests/responses, sockets, end points, and so on). System.Security Security is an integrated aspect of the .NET universe. In the security- centric namespaces you find numerous types dealing with permissions, cryptography, and so on. System.Threading This namespace defines types used to build multithreaded applications. System.Web A number of namespaces are specifically geared toward the development of .NET web applications, including ASP.NET and XML web services. System.Windows.Forms This namespace contains types that facilitate the construction of traditional desktop GUI applications. System.Xml The XML-centric namespaces contain numerous types used to interact with XML data.
  • 7. Accessing a Namespace Programmatically A namespace is a convenient way to logically understand and organize related types. Consider the System namespace. In C#, the using keyword simplifies the process of referencing types defined in a particular namespace. using System; // General base class library types. using System.Drawing; // Graphical rendering types. class MyApp { public void DisplayLogo() { // create a 20x20 pixel bitmap. Bitmap bm = new Bitmap(20, 20); ... } } As this application is referencing System.Drawing, the compiler is able to resolve the Bitmap class as a member of this namespace.
  • 8. Microsoft provides a setup package named dotnetfx.exe that can be freely shipped and installed along with your custom software. Once dotnetfx.exe is installed, the target machine will now contain the .NET base class libraries, .NET runtime (mscoree.dll), and additional .NET infrastructure (such as the GAC, Global Assembly Cashe). Deploying the .NET Runtime