StaticClass

Public Function StaticClass(ByVal TypeName As String) As Object

Creates an object to enable using static classes provided by dot-net libraries.

Dim lGlobals As [PolarStudioGlobals.Globals] = StaticClass("PolarStudioGlobals.Globals, PolarStudioGlobals")
Dim lStart As LongLong = lGlobals.GetPerformanceCounter
Call SomeLongDuringJob()
SendDebug $"The job took {(lGlobals.GetPerformanceCounter - lStart) / lGlobals.GetPerformanceCounterFrequency} seconds to run."

See also: