C# Tutorial
C# (C-Sharp) is a programming language developed by Microsoft that runs on the .NET
Framework.
C# is used to develop web apps, desktop apps, mobile apps, games and much more.
Examples in Each Chapter
Our "Try it Yourself" tool makes it easy to learn C#. You can edit C# code and view
the result in your browser.
Example
using System;
namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
[Link]("Hello World!");
}
}
}
Click on the "Run example" button to see how it works.
We recommend reading this tutorial, in the sequence listed in the left menu.
C# Exercises
Test Yourself With Exercises
Exercise:
Insert the missing part of the code below to output "Hello World!".
static void
(string[] args)
{
.
("Hello World!");
}
Start the Exercise
Learn by Examples
Learn by examples! This tutorial supplements all explanations with clarifying
examples.
C# Quiz
Learn by taking a quiz! The quiz will give you a signal of how much you know, or do
not know, about C#.
Kickstart your career
Get certified by completing the C# course
w
3
s
c
h
o
o
l
s
C
E
R
T
I
F
I
E
D
.
2
0
2
1
COLOR PICKER
colorpicker
LIKE US
Get certified
by completing
a course today!
w
3
s
c
h
o
o
l
s
C
E
R
T
I
F
I
E
D
.
2
0
2
1
CODE GAME
Code Game
Certificates
Top Tutorials
HTML Tutorial
CSS Tutorial
JavaScript Tutorial
How To Tutorial
SQL Tutorial
Python Tutorial
[Link] Tutorial
Bootstrap Tutorial
PHP Tutorial
Java Tutorial
C++ Tutorial
jQuery Tutorial
Top References
HTML Reference
CSS Reference
JavaScript Reference
SQL Reference
Python Reference
[Link] Reference
Bootstrap Reference
PHP Reference
HTML Colors
Java Reference
Angular Reference
jQuery Reference
Top Examples
HTML Examples
CSS Examples
JavaScript Examples
How To Examples
SQL Examples
Python Examples
[Link] Examples
Bootstrap Examples
PHP Examples
Java Examples
XML Examples
jQuery Examples
Web Courses
HTML Course
CSS Course
JavaScript Course
Front End Course
SQL Course
Python Course
PHP Course
jQuery Course
Java Course
C++ Course
C# Course
XML Course
W3Schools is optimized for learning and training. Examples might be simplified to
improve reading and learning. Tutorials, references, and examples are constantly
reviewed to avoid errors, but we cannot warrant full correctness of all content.
While using W3Schools, you agree to have read and accepted our terms of use, cookie
and privacy policy.
Copyright 1999-2021 by Refsnes Data. All Rights Reserved.
W3Schools is Powered by [Link].
[Link]
C# Tutorial
C# (C-Sharp) is a programming language developed by Microsoft that runs on the .NET
Framework.
C# is used to develop web apps, desktop apps, mobile apps, games and much more.
Examples in Each Chapter
Our "Try it Yourself" tool makes it easy to learn C#. You can edit C# code and view
the result in your browser.
Example
using System;
namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
[Link]("Hello World!");
}
}
}
Click on the "Run example" button to see how it works.
We recommend reading this tutorial, in the sequence listed in the left menu.
C# Exercises
Test Yourself With Exercises
Exercise:
Insert the missing part of the code below to output "Hello World!".
static void
(string[] args)
{
.
("Hello World!");
}
Start the Exercise
Learn by Examples
Learn by examples! This tutorial supplements all explanations with clarifying
examples.
C# Quiz
Learn by taking a quiz! The quiz will give you a signal of how much you know, or do
not know, about C#.
Kickstart your career
Get certified by completing the C# course
w
3
s
c
h
o
o
l
s
C
E
R
T
I
F
I
E
D
.
2
0
2
1
COLOR PICKER
colorpicker
LIKE US
Get certified
by completing
a course today!
w
3
s
c
h
o
o
l
s
C
E
R
T
I
F
I
E
D
.
2
0
2
1
CODE GAME
Code Game
Certificates
Top Tutorials
HTML Tutorial
CSS Tutorial
JavaScript Tutorial
How To Tutorial
SQL Tutorial
Python Tutorial
[Link] Tutorial
Bootstrap Tutorial
PHP Tutorial
Java Tutorial
C++ Tutorial
jQuery Tutorial
Top References
HTML Reference
CSS Reference
JavaScript Reference
SQL Reference
Python Reference
[Link] Reference
Bootstrap Reference
PHP Reference
HTML Colors
Java Reference
Angular Reference
jQuery Reference
Top Examples
HTML Examples
CSS Examples
JavaScript Examples
How To Examples
SQL Examples
Python Examples
[Link] Examples
Bootstrap Examples
PHP Examples
Java Examples
XML Examples
jQuery Examples
Web Courses
HTML Course
CSS Course
JavaScript Course
Front End Course
SQL Course
Python Course
PHP Course
jQuery Course
Java Course
C++ Course
C# Course
XML Course
W3Schools is optimized for learning and training. Examples might be simplified to
improve reading and learning. Tutorials, references, and examples are constantly
reviewed to avoid errors, but we cannot warrant full correctness of all content.
While using W3Schools, you agree to have read and accepted our terms of use, cookie
and privacy policy.
Copyright 1999-2021 by Refsnes Data. All Rights Reserved.
W3Schools is Powered by [Link].
[Link]
C# Tutorial
C# (C-Sharp) is a programming language developed by Microsoft that runs on the .NET
Framework.
C# is used to develop web apps, desktop apps, mobile apps, games and much more.
Examples in Each Chapter
Our "Try it Yourself" tool makes it easy to learn C#. You can edit C# code and view
the result in your browser.
Example
using System;
namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
[Link]("Hello World!");
}
}
}
Click on the "Run example" button to see how it works.
We recommend reading this tutorial, in the sequence listed in the left menu.
C# Exercises
Test Yourself With Exercises
Exercise:
Insert the missing part of the code below to output "Hello World!".
static void
(string[] args)
{
.
("Hello World!");
}
Start the Exercise
Learn by Examples
Learn by examples! This tutorial supplements all explanations with clarifying
examples.
C# Quiz
Learn by taking a quiz! The quiz will give you a signal of how much you know, or do
not know, about C#.
Kickstart your career
Get certified by completing the C# course
w
3
s
c
h
o
o
l
s
C
E
R
T
I
F
I
E
D
.
2
0
2
1
COLOR PICKER
colorpicker
LIKE US
Get certified
by completing
a course today!
w
3
s
c
h
o
o
l
s
C
E
R
T
I
F
I
E
D
.
2
0
2
1
CODE GAME
Code Game
Certificates
Top Tutorials
HTML Tutorial
CSS Tutorial
JavaScript Tutorial
How To Tutorial
SQL Tutorial
Python Tutorial
[Link] Tutorial
Bootstrap Tutorial
PHP Tutorial
Java Tutorial
C++ Tutorial
jQuery Tutorial
Top References
HTML Reference
CSS Reference
JavaScript Reference
SQL Reference
Python Reference
[Link] Reference
Bootstrap Reference
PHP Reference
HTML Colors
Java Reference
Angular Reference
jQuery Reference
Top Examples
HTML Examples
CSS Examples
JavaScript Examples
How To Examples
SQL Examples
Python Examples
[Link] Examples
Bootstrap Examples
PHP Examples
Java Examples
XML Examples
jQuery Examples
Web Courses
HTML Course
CSS Course
JavaScript Course
Front End Course
SQL Course
Python Course
PHP Course
jQuery Course
Java Course
C++ Course
C# Course
XML Course
W3Schools is optimized for learning and training. Examples might be simplified to
improve reading and learning. Tutorials, references, and examples are constantly
reviewed to avoid errors, but we cannot warrant full correctness of all content.
While using W3Schools, you agree to have read and accepted our terms of use, cookie
and privacy policy.
Copyright 1999-2021 by Refsnes Data. All Rights Reserved.
W3Schools is Powered by [Link].
[Link]
C# Tutorial
C# (C-Sharp) is a programming language developed by Microsoft that runs on the .NET
Framework.
C# is used to develop web apps, desktop apps, mobile apps, games and much more.
Examples in Each Chapter
Our "Try it Yourself" tool makes it easy to learn C#. You can edit C# code and view
the result in your browser.
Example
using System;
namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
[Link]("Hello World!");
}
}
}
Click on the "Run example" button to see how it works.
We recommend reading this tutorial, in the sequence listed in the left menu.
C# Exercises
Test Yourself With Exercises
Exercise:
Insert the missing part of the code below to output "Hello World!".
static void
(string[] args)
{
.
("Hello World!");
}
Start the Exercise
Learn by Examples
Learn by examples! This tutorial supplements all explanations with clarifying
examples.
C# Quiz
Learn by taking a quiz! The quiz will give you a signal of how much you know, or do
not know, about C#.
Kickstart your career
Get certified by completing the C# course
w
3
s
c
h
o
o
l
s
C
E
R
T
I
F
I
E
D
.
2
0
2
1
COLOR PICKER
colorpicker
LIKE US
Get certified
by completing
a course today!
w
3
s
c
h
o
o
l
s
C
E
R
T
I
F
I
E
D
.
2
0
2
1
CODE GAME
Code Game
Certificates
Top Tutorials
HTML Tutorial
CSS Tutorial
JavaScript Tutorial
How To Tutorial
SQL Tutorial
Python Tutorial
[Link] Tutorial
Bootstrap Tutorial
PHP Tutorial
Java Tutorial
C++ Tutorial
jQuery Tutorial
Top References
HTML Reference
CSS Reference
JavaScript Reference
SQL Reference
Python Reference
[Link] Reference
Bootstrap Reference
PHP Reference
HTML Colors
Java Reference
Angular Reference
jQuery Reference
Top Examples
HTML Examples
CSS Examples
JavaScript Examples
How To Examples
SQL Examples
Python Examples
[Link] Examples
Bootstrap Examples
PHP Examples
Java Examples
XML Examples
jQuery Examples
Web Courses
HTML Course
CSS Course
JavaScript Course
Front End Course
SQL Course
Python Course
PHP Course
jQuery Course
Java Course
C++ Course
C# Course
XML Course
W3Schools is optimized for learning and training. Examples might be simplified to
improve reading and learning. Tutorials, references, and examples are constantly
reviewed to avoid errors, but we cannot warrant full correctness of all content.
While using W3Schools, you agree to have read and accepted our terms of use, cookie
and privacy policy.
Copyright 1999-2021 by Refsnes Data. All Rights Reserved.
W3Schools is Powered by [Link].
[Link]