.NET Programming Languages

You can write your .NET apps in C#, F#, or Visual Basic.

This page doesn't work on Internet Explorer. We recommend you try the new Microsoft Edge browser.

C#

C# (pronounced "C sharp") is a simple, modern, object-oriented, and type-safe programming language.

Its roots in the C family of languages makes C# immediately familiar to C, C++, Java, and JavaScript programmers.

Learn about C#

Press Alt+F1 for accessibility options.
                var names = new[]
{
    "Ana",
    "Felipe",
    "Emillia"
};

foreach (var name in names)
{
    Console.WriteLine($"Hello {name}");
}
            
var names = new[]
{
    "Ana",
    "Felipe",
    "Emillia"
};

foreach (var name in names)
{
    Console.WriteLine($"Hello {name}");
}

F#

F# (pronounced "F sharp") is a programming language that makes it easy to write succinct, robust, and performant code.

Learn about F#

let names = [ "Ana"; "Felipe"; "Emillia" ]

for name in names do
    printfn $"Hello {name}"

Visual Basic

Visual Basic is an approachable language with a simple syntax for building type-safe, object-oriented apps.

Read Visual Basic documentation

Dim names As New List(Of String)({
    "Ana",
    "Felipe",
    "Emillia"
})

For Each name In names
    Console.WriteLine($"Hello {name}")
Next

Ready to get started?

Learn .NET easily with our step-by-step tutorials.

Get started