Default Formatting Using the ToString Method : ToString « Class Module « VB.Net Tutorial






Public Class Automobile
End Class

Module Example
   Public Sub Main()
      Dim firstAuto As New Automobile()
      Console.WriteLine(firstAuto)
   End Sub
End Module








6.33.ToString
6.33.1.Override ToString method
6.33.2.Overriding the ToString Method
6.33.3.Default Formatting Using the ToString Method
6.33.4.The ToString Method and Format Strings