C# (C-Sharp) introduction and First Program | C# (C-Sharp) Tutorial | C# (C-Sharp) Tutorial for Beginners
C-Sharp(C#) introduction and First Program
C# intro
C# (C-Sharp) is Object oriented programming language (OOPs) Created By Microsoft Based on .Net Framework, C# is a part of C family, it's introduce in 2002 and use Visual Studio IDE
why C# ?
it is one of the most popular programing language and easy to learn and easy use, C# is very close to C++,C and Java and programmers easily switch to C#, and it has huge community support
C-Sharp (C#) is a programming language of .Net Framework developed and runs by Microsoft, it's used for Development (Web Apps, Web API, Web Service, Desktop Apps, Native Mobile Apps, Games, and Much more things)
Software and Hardware Requirement
We Need a Windows Machine ( 2+ GB Ram, 80+ GB Rom, 64Bit OS, Dual Core and More Good Processer )
Visual Studio is Microsoft IDE for .Net Framework, .Net Support Many Microsoft Language, You use any Visual Studio (Visual Studio 2010, Visual Studio 2012, Visual Studio 2014, Visual Studio 2017, Visual Studio 2019)
Click on link for Visual studio Download.
Install Visual Studio on Default Settings .
Start Your First Program
Select File > New
choose Save Location of your project,
Select .Net latest Framework,
Check Create Directory for Solution,
if you want to Create new Git Repository is (optional),
And Click On OK
.
use '//' for single line commenting and '/*text*/' for multi line commenting
*****
// System; is pre defends library's
using System;
namespace ConsoleApp1
{
// every method wrap under class
class Program
{
// is static method return type in void mins nothing
static void Main(string[] args)
{
/* if you want to write something on console so use Console.Write(""); and Console.WriteLine (""); for Line Change */
// close every line to ';'
Console.Write("Hello Techie Beings");
// Console.Read(); hold program fot close
Console.Read();
}
}
}
*****
after write this code click on Start for Run Application
Congratulation You successfully write your first C# program
If you like this blog so pls share and Write Comments about Your experience,
Thank You.
My Portfolio Click here









Comments
Post a Comment