Simple C# with Example Programing and Introduction to .Net

Topics: .NET Framework, Programming language, Common Language Infrastructure Pages: 13 (2562 words) Published: October 24, 2010
Thirumalai Engineering College
Department of Computer Science & Engineering
Programming in C#
Prepared by M. Srinivasan, M.C.A,P.G.D.C.A
Unit I
1. Introduction to .NET
Before .NET
The C# programming language was designed for developing programs for Microsoft’s .NET Framework. This chapter will take a brief look at where .NET came from, and its basic architecture. Just to make sure you’re starting on the right foot, let me take this opportunity to remind you of what is hopefully the obvious: C# sharp is pronounced Windows Programming in the Late 1990s

In the late 1990s, Windows programming using the Microsoft platform had fractured into a number of branches. Most programmers were using Visual Basic (VB), C, or C++. Some C and C++ programmers were using the raw Win32 API, but most C++ programmers were using MFC (Microsoft Foundation Classes). Others had moved to COM (the Component Object Model). All these technologies had their own problems. The raw Win32 API was not object oriented, and using it required a lot more work than MFC. MFC was object-oriented, but it was inconsistent and getting old. COM, although conceptually simple, was complex in its actual coding, and required lots of ugly, inelegant plumbing. Another shortcoming of all these programming technologies was that they were aimed primarily at developing code for the desktop rather than the Internet. At the time, programming for the Web was an afterthought and seemed very different from coding for the desktop.

Enter Microsoft .NET
In 2002, Microsoft released the .NET Framework, which promised to address the old problems and meet the goals for the next-generation system. The .NET Framework is a much more consistent and object-oriented environment than either the MFC or COM programming technologies. Some of its features include the following:  Multiple platforms: The system runs on a broad range of computers, from servers and desktop machines to PDAs and cell phones.

 Industry standards: The system uses industry standard communication protocols, such as XML, HTTP, SOAP, and WSDL.
 Security: The system can provide a much safer execution environment, even in the presence of code obtained from suspect sources.
Components of the .NET Framework
The .NET Framework is made up of three components, as shown in Figure 1-2. The execution environment is called the Common Language Runtime (CLR). The CLR manages program execution at run time, including the following:

 Memory management
 Code safety verification
 Code execution
 Garbage collection
The programming tools include everything required for coding and debugging, including the following:  The Visual Studio integrated development environment
 .NET-compliant compilers (e.g., C#, VB, JScript, and managed C++)  Debuggers
 Server-side improvements, such as ASP.NET
The Base Class Library (BCL) is a large class library used by the .NET Framework and available for you to use in your programs as well.
Thirumalai Engineering College
Department of Computer Science & Engineering
Programming in C#
Prepared by M. Srinivasan, M.C.A,P.G.D.C.A
An Improved Programming Environment
The .NET Framework offers programmers considerable improvements over previous Windows programming environments. A brief overview of its features and their benefits is given in the following sections. Object-Oriented Development Environment The CLR, the BCL, and C# have all been designed to be thoroughly object-oriented and act as a well-integrated environment. The system provides a consistent, object-oriented model of programming for both local programs and distributed systems. It also provides a software development interface for both application programming and web development, consistent across a broad range of targets, from servers to cell phones. Automatic Garbage Collection

The CLR has a tool called the Garbage Collector (GC), which automatically manages memory.  The GC automatically deletes objects from memory...
Continue Reading

Please join StudyMode to read the full document

You May Also Find These Documents Helpful

  • Essay on Introduction to Visual Studio .Net
  • Assignment 2 example introduction to nursing Essay
  • An Example of an Introduction Essay
  • simple recommrep example Essay
  • Simple Machines Examples With Pictures Essay
  • Introduction to the C# Programming Language Essay
  • Example of Trifold Brochure (C) Essay
  • Essay about Simple Introduction of

Become a StudyMode Member

Sign Up - It's Free