lect2 - CTS defines System.Int32 4 byte integer C# defines...

Info iconThis preview shows pages 1–12. Sign up to view the full content.

View Full Document Right Arrow Icon
Yin Lou CS 2026, Spring 2010
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
CMS is up Let me know if you are not in CMS Office Hour Friday after class until 2pm, 4161 Upson The first assignment will be posted by Friday Due next Friday Three assignments in total Released on Friday, due next Friday
Background image of page 2
Visual C# 2008 Express walkthrough .Net framework, CLR, CTS C# language guide
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Use wizard to create a C# program Build and run Intellisense feature MSDN lookup Debug
Background image of page 4
A Common Language Runtime (CLR) Virtual Machine like Java C# compiles into Common Intermediate Language All .NET languages compile into CIL e.g. C#, F#, VB.net, IronPython, etc. CIL runs on CLR A Common Type System (CTS)
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 6
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 8
A set of common types Any language that runs in the CLR should implement No syntax specified Languages often define type aliases Examples
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 10
Background image of page 11

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 12
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CTS defines System.Int32 4 byte integer C# defines int as an alias of System.Int32 string System.String object System.Object Assignment <variable name> = <expression> a = (1 + 4) * 5; If Statement if (<condition>) {<statements>} if (1 < 2) {a = 5;} if (<condition>) {<statements>} else {<statements>} If (1 > 2) {a = 5;} else {a = 10;} Loops For loop for (<initialization>; <termination test>; <make progress>) {<statements>} for (int i = 10; i >0; i--) {Console.WriteLine(i);} While loop while (<condition>) {<statements>} while (i > 0) {Console.WriteLine(i); i--;} Do-while loop do {<statements>} while (<condition>) do {Console.WriteLine(i); i--;} while (i > 0);...
View Full Document

Page1 / 12

lect2 - CTS defines System.Int32 4 byte integer C# defines...

This preview shows document pages 1 - 12. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online