[go: up one dir, main page]

0% found this document useful (0 votes)
318 views11 pages

1 - 1 Overview and C# History

C# is an object-oriented programming language developed by Microsoft that is similar to C++ but was designed for the Common Language Infrastructure. It was initially called COOL but was renamed C# as it is a step above C++. A C# program is a text file with a sequence of commands that is compiled into an executable file. The program structure uses curly brackets, semicolons, and variables can be declared with data types.

Uploaded by

wincaacbay19
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
318 views11 pages

1 - 1 Overview and C# History

C# is an object-oriented programming language developed by Microsoft that is similar to C++ but was designed for the Common Language Infrastructure. It was initially called COOL but was renamed C# as it is a step above C++. A C# program is a text file with a sequence of commands that is compiled into an executable file. The program structure uses curly brackets, semicolons, and variables can be declared with data types.

Uploaded by

wincaacbay19
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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