0% found this document useful (0 votes)
17 views

C# Concepts

C# is an object-oriented language derived from C++ and Java that aims to combine the high productivity of Visual Basic with the raw power of C++. It is part of Microsoft's .NET platform and Visual Studio IDE. C# supports developing console, Windows, and web applications. It is a simple, modern language that supports object-oriented principles like encapsulation, inheritance, and polymorphism while also being type-safe and providing interoperability with other .NET languages and Windows applications.

Uploaded by

Gaurav Bhaskar
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

C# Concepts

C# is an object-oriented language derived from C++ and Java that aims to combine the high productivity of Visual Basic with the raw power of C++. It is part of Microsoft's .NET platform and Visual Studio IDE. C# supports developing console, Windows, and web applications. It is a simple, modern language that supports object-oriented principles like encapsulation, inheritance, and polymorphism while also being type-safe and providing interoperability with other .NET languages and Windows applications.

Uploaded by

Gaurav Bhaskar
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

C# CONCEPTS

____________________________________

C# is a simple, modern, object oriented language derived from C++ and Java. It aims to combine the
high productivity of Visual Basic and the raw power of C++. It is a part of Microsoft Visual
Studio7.0. Visual studio supports Vb, VC++, C++, Vbscript, Jscript. All of these languages provide
access to the Microsoft .NET platform. .NET includes a Common Execution engine and a rich class
library. Microsoft's JVM equivalent is Common language run time (CLR). CLR accommodates more
than one languages such as C#, VB.NET, Jscript, ASP.NET, C++. The classes and data types are
common to all of the .NET languages. We may develop Console application, Windows application,
and Web application using C#.

SOME DISTINGUISHED FEATURES

 Simple

1. Pointers are missing in C#.


2. Unsafe operations such as direct memory manipulation are not allowed.
3. In C# there is no usage of "::" or "->" operators.
4. Since it`s on .NET, it inherits the features of automatic memory management and garbage
collection.
5. Varying ranges of the primitive types like Integer, Floats etc.
6. Integer values of 0 and 1 are no longer accepted as Boolean values. Boolean values are
pure true or false values in C# so no more errors of "="operator and "=="operator. "==" is
used for comparison operation and "=" is used for assignment operation.

 Modern

1.C# has been based according to the current trend and is very powerful and simple for
building interoperable, scalable, robust applications.
2. C# includes built in support to turn any component into a web service that can be invoked
over the Internet from any application running on any platform.
 Object Oriented

1. C# supports Data Encapsulation, inheritance, polymorphism, interfaces.


2. (int, float, double) are not objects in java but C# has introduced structures(structs) which
enable the primitive types to become objects

 Type Safe

1. In C# we cannot perform unsafe casts like convert double to a Boolean.


2. Value types (primitive types) are initialized to zeros and reference types (objects and
classes are initialized to null by the compiler automatically.
3. Arrays are zero base indexed and are bound checked.
4. Overflow of types can be checked.

 Interoperability

1. C# includes native support for the COM and windows based applications.
2. Allows restricted use of native pointers.
3. Users no longer have to explicitly implement the unknown and other COM interfaces,
those features are built in.
5. Components from VB.NET and other managed code languages and directly be used in C#

You might also like