Online Cinema Ticket Booking System.doc (Size: 2.32 MB / Downloads: 1092)
INTRODUCTION TO C#
Let’s look at the key building blocks of .NET and some related technologies.
• C#, a new language
C# is the first component oriented language in the C and C++ family of languages. It is a simple, modern, object oriented and type- safe programming language derived from C and C++. C# combines the high productivity of Microsoft Visual Basic and the raw power of C++.
• Common language runtime
The high performance common language runtime includes as execution engine, a garbage collector, post in time compilation, a security system, and a rich class framework (the .NET Framework). The runtime was designed from the ground up to support multiple languages.
• Common language Specification
The Common Language Specification (CLS) describes a common level of language functionality. The relatively high minimum bar of the CLS enables the creation of a club of CLS compliant languages. Each member of the club enjoys dual benefit: complete access to .NET functionality and rich interoperability with other compliant languages. For e.g. a Visual Basic class can inherit from a C# class and override its virtual methods.
• A Rich Set Of Languages That Target The Runtime
Microsoft provided languages that target the runtime include Visual Basic, Visual C++ with Managed Extensions,
Visual C# and J Script. Third parties are providing many other languages- too many to list he
1. Interoperability between languages and execution environments
2. Uniformity in schema or formats for Data Exchange using XML, XSL
3. Extend or use existing code that is valid
4. Programming complexity of environment is reduced
The .NET Framework is…
1. A component model for the internet
2. The new approach to building large scale distributed systems for the Internet
3. Provides the capability to integrate multiple devices
4. Built around the tools and protocols (XML, WSDL, SOAP, HTTP) that are becoming standard on the Internet
The .NET in ASP.NET stands for the .NET Framework, a set of objects and blueprints from Microsoft for building applications. All applications developed under the .NET Framework; including ASP.NET applications, have certain key features that ensure compatibility, security, and stability.
Common Language Runtime (CLR) is an environment that manages the execution of code. With the .NET Framework and CLR, we write code and compile it. However, instead of compiling it into the computer understands, we compile it into a language called Microsoft Intermediate Language (MSIL). When we compile to MSIL, your application produce something called metadata. This is descriptive information about your application. It tells what the application can do, where it belongs, and so on. When you want to run your program, the CLR takes over and compile the code once more into the computer’s native language. This way MSIL can go on any type of computer. The CLR can speak many different computer languages and does all the compiling for you. Once you compile your application, you can bring it to any other computer. CLR also provides services such as error handling, security features, versioning and deployment support, as well as cross-language integration. That means we can choose any language we want to write our .NET applications, including ASP.NET applications.