VB.Net Tutorial/Statements/Imports

Материал из VB Эксперт
Перейти к: навигация, поиск

Imports command

Imports System
Public Class Step2
    Shared Sub Main()
        Console.WriteLine("info")
    End Sub
End Class
info

Imports System

Module MyModule
  Enum Medal As Short
    Gold
    Silver
    Bronze
  End Enum
  Sub Main()
    Dim myMedal As Medal = Medal.Bronze
    Console.WriteLine("My medal: " & myMedal.ToString)
End Sub
End Module
My medal: Bronze