Thirumalai Engineering College
Office of Pc Science & Engineering
Development in C#
Made by M. Srinivasan, M. C. A, S. G. Deb. C. A
Unit My spouse and i
1 . Introduction to. NET
Prior to. NET
The C# coding language was designed for developing programs pertaining to Microsoft's. NET Framework. This kind of chapter is going to take a brief take a look at where. NET came from, and its particular basic architecture. Just to be sure you're starting on the proper foot, allow me to take this chance to remind you of what is hopefully benefits: C# razor-sharp is noticable Windows Encoding in the Late 1990s
In the late 1990s, Windows programming using the Microsoft platform experienced fractured to a number of divisions. Most programmers were using Visual Fundamental (VB), C, or C++. Some C and C++ programmers were using the raw Win32 API, but the majority of C++ coders were employing MFC (Microsoft Foundation Classes). Others acquired moved to COM (the Element Object Model). All these technologies had their own problems. The raw Win32 API had not been object oriented, and using it required far more work than MFC. MFC was object-oriented, but it was inconsistent and achieving old. COM, although conceptually simple, was complex in its actual code, and needed lots of ugly, inelegant plumbing related. Another shortcoming of all these types of programming technologies was that these were aimed generally at growing code intended for the personal pc rather than the Internet. At the time, development for the internet was an afterthought and seemed different from code for the desktop.
Enter Microsoft. NET
In 2002, Microsoft unveiled the. NET Framework, which in turn promised to deal with the old challenges and fulfill the goals for the next-generation system. The. NET Construction is a considerably more consistent and object-oriented environment than either the MFC or COM programming solutions. Some of their features are the following: Multiple platforms: The system runs on the broad range of computers, via servers and desktop devices to PDAs and mobile phones.
Industry standards: The device uses industry standard connection protocols, including XML, HTTP, SOAP, and WSDL.
Security: The system can provide a far safer setup environment, possibly in the occurrence of code obtained from think sources.
Pieces of the. NET Framework
The. NET Platform is made up of 3 components, as shown in Figure 1-2. The performance environment is known as the Common Language Runtime (CLR). The CLR manages system execution at run period, including the pursuing:
Code safety verification
The programming tools include every thing required for coding and debugging, including the pursuing: The Visual Studio integrated development environment
. NET-compliant compilers (e. g., C#, VB, JScript, and handled C++) Debuggers
Server-side improvements, such as ASP. NET
The Base Category Library (BCL) is a significant class library used by the. NET Framework and available for you to use in your programs as well.
Thirumalai Executive College
Department of Computer Science & Engineering
Development in C#
Made by M. Srinivasan, M. C. A, G. G. G. C. A
An Improved Coding Environment
The. NET Platform offers developers considerable advancements over previous Windows development environments. A brief overview of it is features and the benefits has in the following sections. Object-Oriented Development Environment The CLR, the BCL, and C# have all recently been designed to be thoroughly object-oriented and act as a well-integrated environment. The program provides a regular, object-oriented type of programming for both regional programs and distributed systems. It also offers a software advancement interface for both app programming and web development, consistent across an extensive range of objectives, from web servers to cellular phones. Automatic Garbage Collection
The CLR has a tool called the Garbage Enthusiast (GC), which in turn automatically handles memory. The GC immediately deletes objects from memory space...