Skip to main content

C# (C-Sharp) introduction and First Program | C# (C-Sharp) Tutorial | C# (C-Sharp) Tutorial for Beginners

CSharp(C#) 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 

Click on Left Side Corner on File       CSharp(C#) introduction and First Program, C# (C-Sharp) Tutorial, C# (C-Sharp) Tutorial for Beginners


Select File > New
 CSharp(C#) introduction and First Program, C# (C-Sharp) Tutorial, C# (C-Sharp) Tutorial for Beginners


Select File > New > Project and Click CSharp(C#) introduction and First Program, C# (C-Sharp) Tutorial, C# (C-Sharp) Tutorial for Beginners
 CSharp(C#) introduction and First Program, C# (C-Sharp) Tutorial, C# (C-Sharp) Tutorial for Beginners



We start With Console Application so Select Installed > Visual C# >  Console App (.Net Framework)

Write your project Name in bottom Name Field, 
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

CSharp(C#) introduction and First Program, C# (C-Sharp) Tutorial, C# (C-Sharp) Tutorial for Beginners
.

 CSharp(C#) introduction and First Program, C# (C-Sharp) Tutorial, C# (C-Sharp) Tutorial for Beginners



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();
        }
    }
}

*****



CSharp(C#) introduction and First Program, C# (C-Sharp) Tutorial, C# (C-Sharp) Tutorial for Beginners

  
after write this code click on Start for Run Application 
 CSharp(C#) introduction and First Program, C# (C-Sharp) Tutorial, C# (C-Sharp) Tutorial for Beginners


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

Popular posts from this blog

What is OOP (objects oriented programming) in C#

 What is OOP? in C# OOP is Object Oriented programming miens contain methods and data in objects it's called objects oriented programming(OOP) OOP Advantages Provides clear visibility and code for the programs easier to maintain, modify and debug Faster development easier and faster to execute create reusable code make your code neat and clean and easy to understand What is Class and objects in C# Class and object are the two main points of OOP (object oriented programming), when fruit is a class then Apple, Guava, Banana,  is object, when the individual objects are created they inherits all variables and method form the class, class is a template for the objects and object is instance of the class If you like this blog so pls share and  Write Comments  about Your experience, Thank You.

Make api in DotNet Core in 10sec | Create universal api for SQL server

Make API in Dot Net Core in 10sec | Create universal API for SQL server Universal API is great concept for app and angular developer need only connect to data base add table name and access table crud operation using API's  If you like this blog so pls share and  Write Comments  about Your experience, Thank You.

How to Optimize Your LinkedIn Profile as a Software Developer: Tips for Success

How to Optimize Your LinkedIn Profile as a Software Developer: Tips for Success To make your LinkedIn profile more attractive and discoverable as a software developer, you should focus on creating a compelling profile that showcases your skills, experience, and potential. Below are some specific strategies: 1. Professional Profile Picture Use a clear, professional photo where you look approachable and confident. A headshot with a neutral background works well. 2. Headline Your headline should be more than just your job title. Make it a powerful value proposition. Consider including: Your current role, tech stack, or specialization. Highlight key skills (e.g., "JavaScript | React | Node.js | Full-Stack Developer"). Optional: Include a personal tagline (e.g., "Building innovative web applications that solve real-world problems"). Example: "Full-Stack Developer | React, Node.js, Python | Passionate About Clean Code & Scalable Systems" 3. Summary (About Se...