"Hello world" More elaborated example PV178: Programming for .NET Framework Introduction to .NET and C# (seminar) Vojtˇech Forejt, forejt@fi.muni.cz Martin Osovsk´y, osovsky@ics.muni.cz Faculty of Informatics and Institute of Computer Science Masaryk University February 19, 2009 "Hello world" More elaborated example Outline Write, compile and run HelloWorld.cs See resulting CIL code and metadata Work with Visual Studio More elaborated example "Hello world" More elaborated example HelloWorld.cs Do it yourself :-) "Hello world" More elaborated example Compile etc. csc HelloWorld.cs (or maybe c:\windows\microsoft.net\framework\v3.5\csc). see the created file (notepad HelloWorld.exe). disassemble using monodis --output HelloWorld.cil HelloWorld.exe and see the result. "Hello world" More elaborated example SimpleDataStructures Download, unzip and open SimpleDataStructures.zip from https://is.muni.cz/auth/el/1433/jaro2009/PV178/um/codes/ "Hello world" More elaborated example SimpleDataStructures ­ tasks 1 How do we define a class that is a subclass of another class. 2 How do we work with "setters" and "getters"? 3 Find the following keywords in the code and try to explain what is their meaing: throw, override, default, params, var, value. "Hello world" More elaborated example Homework No homework for this week. . . . . . but. . . What is the worst-case complexity of inserting n elements to a list that already contains m elements? Is there any simple way to improve it?