1 - 1 Overview and C# History

Download as pdf or txt
Download as pdf or txt
You are on page 1of 11

Overview and C# History

Objectives

1 Discuss the brief history of C# language;

2 Explain the program structure in C# and the


use of comments in a C# program;

3
Define a C# program and discuss how do we
create a program.

2
C# Defined

● C# is a modern, general-purpose, object-


oriented programming language developed by
Microsoft and approved by Ecma and ISO.
● C# was developed by Anders Hejlsberg and his
team during the development of .Net
Framework.

3
C# Defined

● syntax is similar to C++


● Initially called COOL for C-like Object Oriented
Language
● Renamed C# because it is a step above C/C++
○ # (sharp) means a semi-tone above in music
○ Can also be viewed as a stacked 4 pluses so
C++++

4
C# Defined

● C# is designed for Common Language


Infrastructure (CLI), which consists of the
executable code and runtime environment that
allows use of various high-level languages to be
used on different computer platforms and
architectures.

5
Program Structure

• Lower case
• Case SENSITIVE
• “I need Curly Brackets! { }”
• “I love semicolons ;”
• Close curly brackets }
• Variable Declaration:
string name = “C#”;

6
Program Structure

• Single Line Comments:


//comment here

• Multiple Line Comments:


/*
Comments here
*/

7
What is a Program?

• A C# program is a text file containing a sequence of C#


commands put together according to the laws of C#
grammar.

• This text file is known as the source file (probably because


it’s the source of all frustration).

• A C# source file carries the extension .CS just as a


Microsoft Word file ends in .DOC or an MS-DOS
(remember that?) batch file ends in .BAT. The concept
extension CS is just a convention.
How do I Program?

• To write a program, you need two specialized


computer programs. One (an editor) is what you
use to write your code as you build your .CS source
file.
• The other (a compiler) converts your source file
into a machine-executable .EXE file that carries out
your real-world commands (open spreadsheet,
make rude noise, deflect incoming asteroid,
whatever).
Algorithm

• a sequence of precise
instructions which led to a
solution

• Some approximately
equivalent words are recipe,
method, directions,
procedure and routine

10
References

● Nadal G. (2013). Learning Module in Programing 1 using c#. Module


1 (pages 1-20) Introduction to Programming
● https://www.c-sharpcorner.com/blogs/history-of-c-sharp-
programming-language
● https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-
version-history

11

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy