C# & .NET Framework โ€บ Hello, C#!
๐Ÿ’ก
Exercise 1

๐Ÿ—๏ธ What is C#? 10 XP Easy

Ctrl+Enter Run Ctrl+S Save

๐ŸŒŸ Welcome to The .NET Architect!

Imagine you're an architect who can build anything โ€” skyscrapers, video games, websites, phone apps, even cloud cities floating in the sky. Your magic blueprint language? C# (pronounced "see-sharp").

C# is like building with magical LEGO blocks that snap together perfectly. Each block is type-safe, color-coded, and comes with instructions โ€” so you never accidentally put a wheel where a window should go. That's what makes C# so powerful and reliable!

๐Ÿ“œ A Brief History

C# was created by Anders Hejlsberg at Microsoft in the year 2000. Anders was already famous โ€” he had built Turbo Pascal and was the lead architect of Delphi. Microsoft needed a modern, object-oriented language that could compete with Java while taking advantage of their new .NET platform. The result? C# โ€” a language that combined the power of C++ with the simplicity of Visual Basic.

Fun fact: The '#' in C# is actually a musical sharp symbol (โ™ฏ), meaning the language is a step above C and C++. It's Microsoft's way of saying "we leveled up!"

๐ŸŒ Where is C# Used?

C# is one of the most versatile languages in the world. Here's where architects like you use it every day:

  • ๐ŸŽฎ Game Development โ€” Unity, the world's most popular game engine, uses C# as its scripting language. Games like Hollow Knight, Cuphead, and Pokรฉmon Go were built with Unity + C#!
  • ๐ŸŒ Web Development โ€” ASP.NET Core powers millions of websites, including parts of StackOverflow and Microsoft.com.
  • ๐Ÿ“ฑ Mobile Apps โ€” Xamarin and .NET MAUI let you write one codebase and deploy to iOS, Android, and Windows.
  • ๐Ÿ–ฅ๏ธ Desktop Applications โ€” WPF, WinForms, and WinUI power enterprise apps used by banks, hospitals, and governments worldwide.
  • โ˜๏ธ Cloud & Azure โ€” Azure Functions, microservices, and serverless architectures all love C#.
  • ๐Ÿค– AI & Machine Learning โ€” ML.NET brings machine learning capabilities directly into C# applications.
  • ๐Ÿ”ง IoT & Embedded โ€” .NET nanoFramework lets you run C# on tiny microcontrollers!

๐Ÿš€ Your First Line of Code

Every architect starts with a single brick. In C#, that brick is Console.WriteLine() โ€” a command that prints text to the screen. Think of it as your architect's megaphone, announcing your creations to the world.

Let's write your very first line of C# code and announce yourself as a .NET Architect!

// This is how you print something in C#: Console.WriteLine("Hello, Architect!");

What's happening here?

  • Console โ€” the screen/terminal you're talking to
  • WriteLine โ€” a method that writes a line of text and adds a newline at the end
  • "Hello, Architect!" โ€” the text (called a string literal) wrapped in double quotes
  • ; โ€” the semicolon that ends every statement in C# (like a period at the end of a sentence)

๐Ÿ“‹ Instructions
**Your first mission as a .NET Architect!** Use `Console.WriteLine()` to print the following message to the screen: ``` Hello, Architect! ``` Remember: - Use double quotes around your text - End the line with a semicolon `;` - Capitalization matters โ€” match the output exactly!
Type exactly: Console.WriteLine("Hello, Architect!"); โ€” make sure to use double quotes and end with a semicolon!
main.py
Hi! I'm Rex ๐Ÿ‘‹
Output
Ready. Press โ–ถ Run or Ctrl+Enter.
โ€บ