C#

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 14

VISUAL C#

What is a C#?
C# (pronounced "C-sharp") is an object-oriented
programming language from Microsoft.

That aims to combine the computing power of C+


+ with the programming ease of Visual Basic.

C# is based on C++ and contains features similar to


those of Java.
Evaluation of C#
1967 BCPL B 1970

1972 C

1983 C++

1987 ANSI C

1991 OAK
1996 2000

1995 C#
JAVA ANSI C++
Evaluation of C#
C

ORIENTATION
VB

CO
NC
OBJECT
PT

EP
T
E
NC

IVIT Y
CO

C++

U CT
PO

PROD
WE
R
COMPOUND
ORIENTATION
JAVA
ELEGANC C#
E
Logo of Microsoft Visual C#

Categories of develop
C# is used to develop two main categories of programs
namely,
 Executable application programs and
 Component libraries
C# COMPONENTS
C# contains many different components, including:
Versioning support, so that the base and derived classes-templates
that define how an object performs and it remain compatible as we
develop them.
Events, so that the program can notify clients of a class about
something that has happened to an object.
Type safety and verification that increases reliability and ensures
code security.
Garbage collection, so that the program can identify objects that
program can no longer reach.
Unsafe mode, where it can use pointers to manipulate memory
outside the garbage collector’s control, including methods and
properties.
Windows application in C#
• Design environment:
Solution explorer
Menus

Form
Code editor

Toolbar

Properties/events
messages window
Difference between Windows & Console
application in C#
Windows application Console application
 The windows application has  But the console application is
the design time form not having any design time
 It is like VB due to the form
presence of the design time  It is like C or C++ due to the
form absence of the design time
 The output will be displayed form
in the Run time form as like  The output will be displayed
VB in the Command Prompt
Sample program
Class name

Field

Method

Method body
Static Method
Local variable
Method parameters

Method invocation
CLASS:
A class is a template that defines the form of an object.
Fields:
A fields (i.e) which are objects or values contained in
a class or structure.
Methods:
A method is a code block containing a series of
statements.
 In C#, every executed instruction is done so in the
context of a method.
Method parameters:
The Method Parameters are nothing but they simply
allow information to be passed into and out of a method.
Method Invocation:
Method Invocation is nothing but calling the calling
the method for another time.
Local variable:
A local variable is a type of variable that can be used
where the scope and extent of the variable is within
the method or statement block in which it is declared.
Static method:
Static methods have no instances. They are called
with the type name.
They are slightly faster than instance methods because
of this, Static methods can be public or private.
APPLICATIONS OF C#
This Visual C# was used for variety of application that
are supported by the .Net plat forms, such as
It is used for developing Console applications and
Windows applications.
It is used for developing Windows controls
It is used for developing ASP.NET projects
It is used for developing web controls
It is used for providing web services
It is used for developing .NET component library
Major Highlights of C#
It is the Brand new language derived from C/C++
family.
It is the First Compound Oriented
Programming(COP) Language.
It Simplifies & modernizes the C++.
It is the only COP language available today.
It is the only language designed for the .Net frame
work.
THANK YOU
Presented by
K.GOKUL RAM
DITPTC
PSG TECH

You might also like