Week1

We started with an introduction to algorithms, programming languages, C#, .NET and CLR first.

We continued with basic structure of a C# program by looking into the HelloWorld program. We then learned about the basics of C#: identifiers, literals, keywords, variables, assignment operator. We learned what an assembly is and how to look into an assembly using ildasm tool.

We looked at data types in C#: value types vs. reference types. We learned many basic data types, some of which are int, decimal, char, string, etc. We also started doing some arithmetic operations between numeric types. We looked at implicit and explicit casting between types and use the checked/unchecked keywords to keep the explicit casts safe/unsafe.

Powerpoint files

intro1.ppt

basics.ppt

C# code we discussed in class (renamed as .txt files for security reasons)

hello_cs

add_cs

circlearea_cs

daysecs_cs

arithmeticoperations_cs