Lecture overview -- Keyboard shortcut: 'u'  Previous page: C# in relation to Visual Basic [Section] -- Keyboard shortcut: 'p'  Next page: The Overall Picture -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Help page about these notes  Alphabetic index  Course home  Page 24 : 43
Object-oriented Programming in C#
Introduction to C#
The Overall Picture

Module MyModule

    Sub Main()
        Dim name As String   ' A variable name of type string
        name = InputBox("Type your name")
        MsgBox("Hi, your name is " & name)
    End Sub

End Module

Typical overall program structure of a Visual Basic Program.

using System;

class SomeClass{

  public static void Main(){
    string name;    // A variable name of type string
    Console.WriteLine("Type your name");
    name = Console.ReadLine();
    Console.WriteLine("Hi, your name is " + name);
  }

}

Typical overall program structure of a C# Program.