Saturday, April 26, 2025

C# - Introduction & Installation

C# (pronounced "C sharp") is a modern, multi-paradigm programming language developed by Microsoft in the early 2000s.

It is designed to be simple, safe, and efficient, and is widely used for developing a variety of applications on the .NET framework, including Windows desktop applications, web applications, mobile apps, games, and more. 

The .NET Framework is a software framework developed by Microsoft that provides a platform for building, deploying, and running applications. It includes a large library of pre-built code and tools that developers can use to create a wide range of applications.

using System;

namespace LearnCS
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Some String");           
        }
    }        
}

Quick explanation, for now:

This C# code defines a class called Program inside a namespace called LearnCS. The Main method is the entry point of the program, which is executed when the program starts.

Inside the Main method, a message "Some String" is printed to the console using the Console.WriteLine method.

In order to use the Console class, the System namespace is being imported using the using keyword at the beginning of the file.

No comments:

Post a Comment

Tkinter Introduction - Top Widget, Method, Button

First, let's make shure that our tkinter module is working ok with simple  for loop that will spawn 5 instances of blank Tk window .  ...