Assign string value to an Object variable : Object « Class Module « VB.Net Tutorial






public class Test
   public Shared Sub Main

        Dim objMyModemSpeed As Object

        objMyModemSpeed = "28.8"
        Console.WriteLine(objMyModemSpeed)

        Console.WriteLine(objMyModemSpeed * 1000 / 8)

        objMyModemSpeed = Nothing


   End Sub
End class
28.8
3600








6.36.Object
6.36.1.Assign string value to an Object variable
6.36.2.Object lifetime
6.36.3.Reference Equality