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

2 - C# Syntax

C# is an object-oriented programming language created by Microsoft that runs on the .NET Framework. It has roots in the C family of languages and is similar to C++ and Java. The document introduces C# and its syntax, explaining that a C# program requires a namespace, class, and main method where the program execution starts. The main method uses Console.WriteLine to print output to the console.
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

2 - C# Syntax

C# is an object-oriented programming language created by Microsoft that runs on the .NET Framework. It has roots in the C family of languages and is similar to C++ and Java. The document introduces C# and its syntax, explaining that a C# program requires a namespace, class, and main method where the program execution starts. The main method uses Console.WriteLine to print output to the console.
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 7

Introduction to

C# Language & its


Syntax
Welcome

What is C#?
C# Syntax
Follow

Content
Follow
All RAD Techno Services,
23/134, Swarn Path,
Mansarovar, Jaipur-302020

Email:- [email protected]
Website:- www.radtechnoservices.com
Follow
Follow
C# Syntax
What is C#
2. C# Syntax?
1. What is C#?
CONTENT

Content
Content
WHAT IS C#?
 C# is pronounced "C-Sharp".

 It is an object-oriented programming
language created by Microsoft that runs on
the .NET Framework.

Introductio
What is C# ?
C# Syntax
Follow
Follow
 C# has roots from the C family, and the
language is close to other popular
languages like C++ and Java.

 The first version was released in year


2002. The latest version, C# 11, was
released in November 2022.
C# Syntax?
⦿The syntax of the C# programming language
is the set of rules to help write or execute
the programme in C#.
Syntax:-
using System;

Requirement
Whats is C#
C# Syntax
Follow
namespace HelloWorld
Follow {
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
using System; :-
⦿using System means that we can use classes
from the System namespace.

namespace HelloWorld :-

Requirement
⦿It is used to organize your code, and it is a

Whats is C#
C# Syntax
Follow
Follow
container for classes and other namespaces.

class Program :-
⦿A "class" is a fundamental concept that
defines a blueprint for creating objects in
object-oriented programming (OOP)
languages.
static void Main(string[] args):-
⦿This is a main method called the entry point
of the application.
⦿ It's where the program execution starts
when you run the application.

Requirement
Whats is C#
C# Syntax
Follow
Follow Console.WriteLine("Hello World!"); :-
⦿To print the data on console we used
console.writeLine from the system
namespace .
YOU
THANK

Follow
Follow
Requirement
C# Syntax
s
What is C#?

You might also like