C-Sharpe

From MPGH Wiki
Revision as of 13:20, 28 January 2018 by Silent (talk | contribs) (Created page with "C# Is a modern, object-orientated programming (OOP) language created by Microsoft in 2002 for their all new .NET Framework. Since '02, C# has been used across many fra...")

(diff) ← Older revision | Approved revision (diff) | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

C# Is a modern, object-orientated programming (OOP) language created by Microsoft in 2002 for their all new .NET Framework. Since '02, C# has been used across many frameworks for all different types of platforms. For example; Windows has .NET Framework; Andoird & IOS have Xamarin; Windows, OSX, and Linux have Mono. There are other frameworks that support C#, but they're the well known.


Setup

Before we dive into the programming language, we need to setup a few things. First we will need to install an IDE (Integrated Development Environment). The easiest IDE to use and install would have to be Visual Studio. So let's go to their Download Page. After going to the download page, you want to download Visual Studio Community Edition (It's the free one). After downloading Visual Studio Community Edition, you want to install it. Make sure to run the installation executable as an administrator. After waiting a few seconds, you will be prompted with a installation screen. The first screen you're prompted with is a Terms of Service agreement, and a Privacy Statement. You can click continue without reading, although we advise you to read it. If you clicked continue, you will be shown a new screen, this screen has checkbox's for things you wish to install. Check .NET Desktop Development, then hit install. The rest of the installation steps are unique for you.


Hello World

Creating Project

First lets open Visual Studio. Upon opening you will be shown a page like this (image). Mine might be slightly different because I'm using an outdated version of Visual Studio. Okay, so now we want to create a new project. This can be done through the File button at the top left, or at the New Project button in the Start Page tab. Image. When clicking that button, a window like this (image) will appear. At this screen you can pick your desired programming language, type of project, and the project's name. We want to select Visual C# for the language, for the type we want a Console Application. Your screen should look like this if you followed the instructions correctly. Now we want to click OK.

Breakdown of what you see

If everything was followed correctly, you should see a screen like this. Let's break down what you see.


.. add more