06-06-2013, 03:51 PM
Introducing C#
Introducing C#.pptx (Size: 91.13 KB / Downloads: 16)
What is C#
C# (pronounced as ‘C sharp’) is a new computer programming language developed by Microsoft
It is fully Object-Oriented like java and first component-Oriented language
It has been designed to support new features of .NET
It is designed for building robust, reliable and durable application
It is brand new language derived from C and C++
It is the only language designed for .NET framework
It combines best features from many languages:
The productivity of VB
Power of C++
Elegance of JAVA
Major parts of .NET Framework actually coded in C#
Why C#...?
C and C++ have been the two most popular and most widely used languages in the software industry for last two decades
They provides tremendous amount of power and control for developing scientific, commercial and business application
However these languages suffers from number of shortfalls
The high complexity of language
They are not truly object oriented
Not suitable working with new web technology
Poor type safety
They do not support versioning
They are prone to memory leakage
poor support for component programming
VB, a language promoted by Microsoft for overcoming these problems, also could not meet some of the requirement of WWW
And VB was also not truly Object- Oriented
So it become difficult to use when systems become large
Java, a language derived from C and C++ family
It is truly object oriented
It has been widely used for web applications for the past five years
Characteristics of C#
Simple
Eliminate the operators like , :: and pointer
Use of = in place of == will caught by compiler
Consistent
Eliminates the problem of varying ranges of integer type by considering it as an object
Modern
Automatic Garbage collection
Modern approach to debugging
Decimal data type for financial applications
Object-Oriented
Class, object, encapsulation, inheritance , polymorphism
Everything will be object , no more global functions, Variable and constants
Difference between C++ and C#
It compiles straight forward from source code to Executable code, with no object file
C# does not separate class definition from implementation. Class are defined and implemented at same place
In C#, class definition does not use semicolon at end
C# does not support #include
All data type of C# are inherited from Object super class and therefore they are object
C# checks uninitialized variable and shows error at compile time
C# permits declaration of variable between goto and label
We can create object in C# only by using new keyword
Arrays are built in class in C#, that’s why they have inbuilt functionality for sorting, searching and reversing
Arrays in C# always reference type
How dose C# differ from JAVA?
Unlike Java, all C# data types are object
C# has more basic data types
C# support struct type , Java does not
Java does not provide operator overloading
Batter versioning support than Java
In Java , parameter are always pass by value , C# allows parameters to be passes by reference by using ref key word