Introduction To C Sharp
Introduction To C Sharp
AND
THE .NET FRAMEWORK
.NET AND C#
• .NET Platform
Web-based applications can be
distributed to a variety of devices
and desktops
• C#
developed specifically for .NET
MICROSOFT .NET
• Keys to interaction
• XML (Extreme Markup Language) and SOAP (Simple Object Access
Protocol)
• “Glue” that combines various Web services to form applications
• XML gives meaning to data
• SOAP allows communication to occur easily
MICROSOFT .NET
• Other concepts
• Universal data access
• Eliminates need to synchronize files
• Synchronization - Updating multiple copies of
same file to the most recent
• Data resides at one central location
• Accessible by anyone with connection and
proper authorization
• Data formatted appropriately for display on
various devices
• Same document seen on PC, PDA, cell phone
and other devices
.NET FRAMEWORK AND THE
COMMON LANGUAGE RUNTIME
• .NET Framework
• Heart of .NET strategy
• Manages and executes applications and Web services
• Provides security, memory management and other programming
capabilities
• Compilation process
• Two compilations take place
• Programs compiled to Microsoft Intermediate Language (MSIL)
• Defines instructions for CLR
• MSIL code translated into machine code
• Platform-specific machine language
COMMON LANGUAGE RUNTIME
(CLR)
• Why two compilations?
• Platform independence
• .NET Framework can be installed on different platforms
• Execute .NET programs without any modifications to code
• .NET compliant program translated into platform independent MSIL
• Language independence
• MSIL form of .NET programs not tied to particular language
• Programs may consist of several .NET-compliant languages
• Old and new components can be integrated
• MSIL translated into platform-specific code
• Other advantages of CLR
• Execution-management features
• Manages memory, security and other features
• Relieves programmer of many responsibilities
• More concentration on program logic
.NET AND C#
• .NET platform
• Web-based applications can be distributed to variety of devices and
desktops
• C#
• Developed specifically for .NET
• Enable programmers to migrate from C/C++ and Java easily
• Event-driven, fully OO, visual programming language
• Has IDE
• Process of rapidly creating an application using an IDE is called
Rapid Application Development (RAD)
C#
• Language interoperability
• Can interact with software components written in different
languages or with old packaged software written in C/C++
• Can interact via internet, using industry standards
(SOAP and XML)
• Simple Object Access Protocol - Helps to share program
“chunks” over the internet
• Console applications
• No visual components
(buttons, text boxes, etc.)
• Only text output
• Two types
• MS-DOS prompt -Used in Windows 95/98/ME
• Command prompt -Used in Windows 2000/NT/XP
NAMESPACES