Internet Application Development week 6, an introduction to C#.
The fist part of the lecture covered the basic data types and operators (most of which are the same as Java). Control structures and operators came next, again these reflected Java very closely.
Internet Application Development week 6, an introduction to C#.
The fist part of the lecture covered the basic data types and operators (most of which are the same as Java). Control structures and operators came next, again these reflected Java very closely.
Collections in the C-Sharp language are again a mirror of the Java language.
Functions are the methods of Java:
1 2 3 4 5 6 7 | string MyFirstFunction(string Name, int Age) { ... ... ... return "Confirmed"; } |
To give a feel for the syntax and a useful tool, the code snippet below draws a table of web server information dynamically.