Sei sulla pagina 1di 58

C#

PROGRAMMIN
G
C# (pronounce as C SHARP)
→ C# is syntactically similar to its
competitor Java. Being a C based
language, C# is closer to C++
and C as well.

2
C# (pronounce as C SHARP)
→ A general purpose, object
oriented programming language.
→ C# is one of the most popular
language used for developing
desktop and web application.

3
What is C#
(programming
language)?
History
Anders Hejlsberg in 1999
led a team to build a new
language called Cool (C-like
Object Oriented Language).
Later the name was changed
to C# for trademark reasons.
5
Reason Behind the
name 'C#'
The name C# or C sharp was inspired
from a musical note. The symbol # in
C# represents four '+' signs and is
named similar to C++. '++' in
programming indicates an increment
by 1.

6
Different versions of
C#

7
Features of
C#
Programming
Language
1. Simple to write and
understand
 C# is syntactically very
similar to Java. It also borrows
certain concepts from C++.
The code written in C# is
much simpler and easier to
understand. 9
2. Object oriented
 Like Java and C++, C# is an object
oriented programming language. It
supports the features of object
oriented paradigm such as objects,
classes, inheritance, polymorphism,
etc.
 Object oriented approach is not only
easier and simpler but the preferred
10
3. Type safe
 One of the peculiar feature of C# is
type safety. A type safe language
ensures that each variable of particular
type does not hold values of other type.
For instance, an integer variable will not
hold character values.

 The advantage of type safe language is


that possible errors are being checked 11
4. Modern
 C# is a modern language which
is built based on the current
trend.
 C# is a powerful language which
allows developers to build robust
application quickly and easily.
 It has many advanced features 12
5 Reasons
why you
should learn
C#?

When you start learning a new
programming language, it is
important to know about the
prospect of the language. Is the
language really helpful? Is it
worth learning it? Before diving
into a new programming
language, these 14 are the things
1. Easy to start
 C# is easy to start with. Being a high
level language, the basic constructs of
C# is easy to understand.
 C# is closer to other popular languages
like Java and C++.
 So it is very easy for someone with
experience in these programming
language to switch to C#. 15
2. Widely used for
developing Desktop and
Web Application
 C# is widely used for developing
desktop and web application. 
 According to 2017 survey of
StackOverflow, C# is 3rd most
popular language used by
professional desktop and web
application developer.
(stackoverflow, it is the most popular 16
3. Community

 Community is one of the most


important factors to be
considered before moving into a
new programming language.
 The larger the community is, the
more support you are likely to
get. 17
4. Game Development

 Unity is the most popular game


engine with a very large
community.
 And C# is often the
recommended language to be
used along with unity game
18
5. Future as a C#
developer

 C# was developed by Microsoft and


is still being maintained by them.
 C# is the choice of language for
making apps in Windows platform.
 Since C# is backed up by Microsoft, it
is going to be in the market for a
long time. 19
Compile and
run C#
programming
on your OS
 The easiest way to get started
with C# is using Visual Studio
Code (VS Code).
 VS Code is a lightweight cross
platform code editor which runs
on Linux, Windows and Mac.
 It is free and open source which
happens to support many
programming languages.

21
22
Install C#
extension for
Visual Studio
Code (For all
OS)
Install C# extension for
Visual Studio Code (For all
OS)

◎Open Visual Studio Code.


◎Click on extension icon on the
left or press Ctrl+Shift+X
 and type C# in the search
bar as shown in image.
24
25
C# Hello
World - Your
First C#
Program
27
How the
"Hello World!"
program in
C# works?
1. // Hello World! Program

  // indicates the beginning of a


comment in C#.
 Comments are not executed by
the C# compiler.
 They are intended for the developers to
better understand a piece of code. To
learn more about comments in C#, 29
2.namespace
HelloWorld{...}
 The namespace keyword is used
to define our own namespace.
Here we are creating a
namespace called HelloWorld.
 Just think of namespace as a
container which consists of
classes, methods and other 30
Examples of namespace

 namespace Namespace-Name
 namespace MyNamespace
 namespace MyProgram
 namespace Hello

31
3. class Hello{...}
 The above statement creates a class
named -Hello in C#.
 Since, C# is an object-oriented
programming language, creating a class
is mandatory for the program’s
execution.

32
4. static void Main(string[] args)
{...}
 Main()  is a method of class Hello. The
execution of every C# program starts
from the Main() method.
5. System.Console.WriteLine("Hello
World!");
 the piece of code that prints Hello
World! to the output screen.
33
Alternative
Hello World!
implementati
on
35
2.namespace
HelloWorld{...}
 Notice in this case, we’ve written using
System; at the start of the program.
 By using this, we can now replace

WITH

36
37
Big
concept
Bring the attention of
your audience over a
key concept using icons
or illustrations

38
You can also split your content

White Black
Is the color of milk and Is the color of coal, ebony,
fresh snow, the color and of outer space. It is
produced by the the darkest color, the
combination of all the result of the absence of or
colors of the visible complete absorption of
spectrum. light.

39
In two or three columns

Yellow Blue Red


Is the color of gold, Is the colour of the Is the color of
butter and ripe clear sky and the blood, and
lemons. In the deep sea. It is because of this it
spectrum of visible located between has historically
light, yellow is violet and green on been associated
found between the optical with sacrifice,
green and orange. spectrum. danger and
courage.

40
A picture is worth a thousand words

A complex idea can


be conveyed with just
a single still image,
namely making it
possible to absorb
large amounts of data
quickly.

41
Want big
impact?
Use big
image.

42
Use charts to explain your ideas

White Gray Black

43
Or diagrams to explain complex ideas

Example text. Example text.


Lorem ipsum dolor sit Lorem ipsum dolor sit
amet, consectetur amet, consectetur
adipiscing elit. Nam adipiscing elit. Nam
venenatis nisi at nisl venenatis nisi at nisl
tempor, et luctus diam tempor, et luctus diam
lobortis. Nulla sit amet lobortis. Nulla sit amet
metus consequat velit metus consequat velit
iaculis tempor. iaculis tempor.

44
And tables to compare data

A B C

Yellow 10 20 7

Blue 30 15 10

Orange 5 24 16

45
Maps

our
office

46
89,526,12
4
Whoa! That’s a big number, aren’t you
proud?

47
89,526,124$
That’s a lot of money

185,244 users
And a lot of users

100%
Total success!

48
Our process is easy

last

first

second

49
Let’s review some concepts

Yellow Blue Red


Is the color of gold, butter Is the colour of the clear sky Is the color of blood, and
and ripe lemons. In the and the deep sea. It is because of this it has
spectrum of visible light, located between violet and historically been associated
yellow is found between green on the optical with sacrifice, danger and
green and orange. spectrum. courage.

Yellow Blue Red


Is the color of gold, butter Is the colour of the clear sky Is the color of blood, and
and ripe lemons. In the and the deep sea. It is because of this it has
spectrum of visible light, located between violet and historically been associated
yellow is found between green on the optical with sacrifice, danger and
green and orange. spectrum. courage.

50
You can copy&paste graphs from Google Sheets

51
Mobile project Place your screenshot here

Show and explain your


web, app or software
projects using these
gadget templates.

52
Tablet project Place your screenshot here

Show and explain your


web, app or software
projects using these
gadget templates.

53
Thanks!
Any questions?
You can find me at:
@username &
user@mail.me

54
Credits

Special thanks to all the people who made and


released these awesome resources for free:
◎ Presentation template by SlidesCarnival
◎ Photographs by Unsplash

55
Presentation design

This presentations uses the following typographies and colors:


◎ Titles: Roboto Slab
◎ Body copy: Source Sans Pro
You can download the fonts on these pages:
https://www.fontsquirrel.com/fonts/roboto-slab
https://www.fontsquirrel.com/fonts/source-sans-pro

◎ Blue #0091ea
◎ Dark gray #263238
◎ Medium gray #607d8b
◎ Light gray #cfd8dc

You don’t need to keep this slide in your presentation. It’s only
here to serve you as a design guide if you need to create new
slides or download the fonts to edit the presentation in
PowerPoint® 56
SlidesCarnival icons are editable
shapes.

This means that you can:


● Resize them without losing
quality.
● Change line color, width and
style.

Isn’t that nice? :)

Examples:

57
� Now you can use any emoji as an icon!
And of course it resizes without losing quality and you can change the
color.


✋���
� � ��
❤���� �
How? Follow Google instructions
https://twitter.com/googledocs/status/730087240156643328

and many
more...

58

Potrebbero piacerti anche