Page cover image

.Net

01. C#

  • Basic

filename.cs
using System;

namespace h4rithd
{
    class welcome
    {
        static void Main(string[] args)
        {
            Console.WriteLine("welcome to h4rithd.com\r\n");
        }
    }
}
  • Complie

## ------------------| Choose version
dir dir c:\Windows\Microsoft.NET\Framework64\v*
dir c:\Windows\Microsoft.NET\Framework\v*

## ------------------| Complie
c:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe filename.cs 
dir ! find "filename.exe"
.\filename.exe
  • Debug

## ------------------| Debug comments
using System.Diagnostics;
static void Main(string[] args)
{
    Debug.Print("Debug");
}

## ------------------| Console output
Console.WriteLine("Debug");
System.Console.WriteLine("Debug");

## ------------------| Message Box
MessageBox.Show("message", "title");  

Last updated

Was this helpful?