Example
Example
C# is used to develop web apps, desktop apps, mobile apps, games and much more.
Example
using System;
namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
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!");
}
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#.
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
W3.CSS Tutorial
Bootstrap Tutorial
PHP Tutorial
Java Tutorial
C++ Tutorial
jQuery Tutorial
Top References
HTML Reference
CSS Reference
JavaScript Reference
SQL Reference
Python Reference
W3.CSS 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
W3.CSS 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.
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.
Example
using System;
namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
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!");
}
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#.
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
W3.CSS Tutorial
Bootstrap Tutorial
PHP Tutorial
Java Tutorial
C++ Tutorial
jQuery Tutorial
Top References
HTML Reference
CSS Reference
JavaScript Reference
SQL Reference
Python Reference
W3.CSS 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
W3.CSS 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.
W3Schools.com
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.
Example
using System;
namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
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!");
}
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#.
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
W3.CSS Tutorial
Bootstrap Tutorial
PHP Tutorial
Java Tutorial
C++ Tutorial
jQuery Tutorial
Top References
HTML Reference
CSS Reference
JavaScript Reference
SQL Reference
Python Reference
W3.CSS 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
W3.CSS 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 W3.CSS.
W3Schools.com
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.
Example
using System;
namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
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!");
}
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
W3.CSS Tutorial
Bootstrap Tutorial
PHP Tutorial
Java Tutorial
C++ Tutorial
jQuery Tutorial
Top References
HTML Reference
CSS Reference
JavaScript Reference
SQL Reference
Python Reference
W3.CSS 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
W3.CSS 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.
W3Schools.com