1. Microsoft Technologies
Microsoft Corporation is an American multinational
technology company from Redmond, Washington, whose goal is
to build best the best productivity tools and services for a
mobile-first, cloud-first world.
Microsoft has become well known for the operating system
family Windows, first launched in 1985. By 2016, Microsoft has
released multiple versions for personal use (most notably
Windows XP, Windows 7), Windows 10 being the latest
release.
through
2. .NET and C#
.NET is a framework developed by Microsoft designed to
provide an environment in which you can develop almost any
type of application be it a classic desktop application, a
Windows Presentation Forms application, a dynamic web page
served by a web server, a database access component, cloud
applications for Microsoft Azure or even parallel and distributed
applications.
To understand the significance of .NET, keep in mind that
while Windows has evolved a lot in the past 20 years, at their
core lies the same Windows API.
With every new release of the .NET framework (.NET
1,2,3,4,4.5,4.6) new and important functionality was added,
while the old one was kept in order to maintain backwards
compatibility.
When Windows 8 launched, the main API got a
replacement with a component called Windows Runtime, but it
was still based on the familiar API. Similarly, many current
Microsoft technologies present in the .NET framework have
evolved from other similar technologies rather than replaced.
This evolutionary approach to software development
was preferred by Microsoft in order to maintain support for older
programs that were written for Windows. Surely, if the old code
hadnt worked from one version to the other, the operating
system family wouldnt have had the same success.
C# is a language that was designed by Microsoft with one
simple goal: to represent the base language for building
software on the .NET platform; regardless of the fact that you
are writing a web application, or a console service, or a classic
desktop application, you can achieve it by using C#.
While you can still create applications for the framework
using Visual Basic and a C++ (Microsoft developed on top of
the C++ standards and created Managed C++), it is rather
easier to code it in C#.
Advantages of the .NET platform:
object-oriented approach
Comments
The first line of the program contains a comment. Similar
to C, C++, Java or JavaScript, in C# you can comment:
- a single line done by adding // at the beginning of
the line
//ThisisasinglelinecommentinC#
Namespaces
The very first line of actual code (not the comment) is
usingSystem.
The reason for the presence in our code is that you are going to
use a library class called System.Console . The using System
statement enables you to refer to this class simply as Console.
Without the using statement, you would have to call the full
name, including the namespace in our case, for each console
print you would have to write System.Console.WriteLine();