-- A set of libraries that every .NET implementation uses
-- The libraries consist of common activities, like classes and value types, that you will use to create your programs
-- No need to reinvent the wheel with every new project
+- Common Language Infrastructure (CLI) is a standardized specification that decribes how different high-level langauges (like C#) can be run on different platforms without having to be rewritten
+- both versions of .NET are implementations of the CLI
+- Another implementation is the free and open-source Mono project
+
+- Used by the Unity game engine and the MonoGame framework
-
using System;
-
using System.Collections.Generic;
-
using System.Linq;
-
using System.Threading.Tasks;
-
C#
-
C# was developed for .NET Framework in 2000
-
Microsoft wanted a Windows exclusive competitor for Java
-
Easy to understand, general purpose, object oriented
-

-
Source: http://pypl.github.io/PYPL.html
-
Creating a Console Application
-
Open Visual Studio 2022.
-
Select "Create a new project"
-
Type "console" to the search bar and select the following template:
-

-
Running a Console Application
-
To run your program, select "Debug" -> "Start Debugging" __or __ press F5 __or __ press the small play sign preceding your project name at the top middle
-
The template project should now run and print "Hello World!" to the console. Try changing the code so that it prints something else!
-
C# Syntax - Statements
-
using System;
-
-namespace MyAwesomeProgram
-{
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("Hello World!");
- }
- }
-}
+