Imports System
Imports uCalcSoftware
Public Module Program
   Public Sub Main()
      Dim uc As New uCalc()
      '// Language specific - auto-releasing Item object
      Console.WriteLine("auto-releasing Item (language-specific)")
      #If False
         { '// MyVar resources will NOT be released when MyVar goes out of scope
         Dim MyVar = new uCalc.Item("Variable: x = 123")
         '// Call MyVar.Release() explicitly if want to release it here
         }
         
         { '// MyVar resouces will be released automatically when MyVar goes of scope
         
         
         '// No need for MyVar.Release(), it will automatically be released
         }
         #End If
      End Sub
   End Module