Download presentation
Presentation is loading. Please wait.
Published byKarin Watkins Modified over 9 years ago
1
C# Overview and Features
2
Content I.History of C# II.Architecture III.How to install IV.Features V.Code Sample VI.Microsoft.NET Platform VII.Why use C# VIII.Conlusion
3
What is C#? C# ( pronounced as C-sharp ) is a new Java like language from Microsoft. Microsoft says that C# is a language with the power of C++ and simplicity of Visual Basic. C# supposed to be the best language for Microsoft's.NET programming.
4
History In August, 2000, Microsoft, Hewlett-Packard and Intel co-sponsored the submission of specifications for the Common Language Infrastructure (CLI) and C# programming language to the international standardization organization ECMA In August, 2000, Microsoft, Hewlett-Packard and Intel co-sponsored the submission of specifications for the Common Language Infrastructure (CLI) and C# programming language to the international standardization organization ECMA During next year the specifications were formulated into standards. During next year the specifications were formulated into standards. In December, 2001, the ECMA General Assembly ratified the 1st edition of the C# and CLI standards as ECMA-334 and ECMA-335 In December, 2001, the ECMA General Assembly ratified the 1st edition of the C# and CLI standards as ECMA-334 and ECMA-335
5
History II In April, 2003, ISO ratified the standards In April, 2003, ISO ratified the standards Work at ECMA on the next edition of the Standards is already underway Work at ECMA on the next edition of the Standards is already underway
6
Architecture Common Language Runtime Common Language Runtime manages code execution manages code execution provides services provides services Compiler Compiler C# compiler is part of.NET Framework SDK C# compiler is part of.NET Framework SDK generatesMSIL + Metadata CPU specific Code (JIT) generatesMSIL + Metadata CPU specific Code (JIT) Because the runtime supplies one or more JIT compilers for each computer architecture it supports, the same set of MSIL can be JIT-compiled and executed on any supported architecture Because the runtime supplies one or more JIT compilers for each computer architecture it supports, the same set of MSIL can be JIT-compiled and executed on any supported architecture
7
How to install Install Windows 2000 and IE 5.5. Install Windows 2000 and IE 5.5. Install Microsoft.NET Framework SDK. Microsoft has it on MSDN site. Install Microsoft.NET Framework SDK. Microsoft has it on MSDN site. After installing these you can write your code in any text editor and save it as.cs extension. After installing these you can write your code in any text editor and save it as.cs extension. To run the program use the csc command like csc c:\myprogram.cs To run the program use the csc command like csc c:\myprogram.cs
8
Features Garbage collection relieves the programmer of the burden of manual memory management. Garbage collection relieves the programmer of the burden of manual memory management. Variables in C# are automatically initialized by the environment. Variables in C# are automatically initialized by the environment. Managed execution environment Managed execution environment Variables are type-safe. Variables are type-safe. native support for the Component Object Model (COM) and Windows®-based APIs. native support for the Component Object Model (COM) and Windows®-based APIs. Built in versioning Built in versioning
9
Features II Restricted use of native pointers Restricted use of native pointers With C#, every object is automatically a COM object With C#, every object is automatically a COM object Platform and language independent Platform and language independent Inside a specially marked code block, developers are allowed to use pointers and traditional C/C++ features such as manually managed memory and pointer arithmetic. Inside a specially marked code block, developers are allowed to use pointers and traditional C/C++ features such as manually managed memory and pointer arithmetic.
10
Features III Compiler allows use of initialised Variables only Compiler allows use of initialised Variables only Strong exception handling Strong exception handling Full XML support Full XML support Suited well for building Web Services Suited well for building Web Services Array bounds checking Array bounds checking The language is intended for use in developing software components suitable for deployment in distributed environments. The language is intended for use in developing software components suitable for deployment in distributed environments.
13
Microsoft.NET Platform Huge library of Functions Huge library of Functions Collection of classes Collection of classes Windows Application Framework Windows Application Framework Web Framework for ASP.NET Web Framework for ASP.NET Provides access to many kinds of Devices Provides access to many kinds of Devices Developed mainly in C# itself Developed mainly in C# itself
14
Why use C# Full COM/Platform support for existing code integration. Full COM/Platform support for existing code integration. Robustness through garbage collection and type safety. Robustness through garbage collection and type safety. Security provided through intrinsic code trust mechanisms. Security provided through intrinsic code trust mechanisms. Full support of extensible metadata concepts. Full support of extensible metadata concepts. You can also interoperate with other languages, across platforms, with legacy data, by virtue of the following features: You can also interoperate with other languages, across platforms, with legacy data, by virtue of the following features: Full interoperability support through COM+ 1.0 and.NET Framework services. Full interoperability support through COM+ 1.0 and.NET Framework services. XML support for Web-based component interaction. XML support for Web-based component interaction. Versioning to provide ease of administration and deployment. Versioning to provide ease of administration and deployment.
15
Conclusion C# is a modern, object-oriented language that enables programmers build solutions for the Microsoft.NET platform. The framework provided allows C# components to become XML Web services that are available across the Internet, from any application running on any platform.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.