Object.SizeOf (gb)
Static Function SizeOf ( Object As Object ) As Integer
Restituisce la memoria in byte utilizzata da un oggetto esistente.
Esempio
Public Struct EmployeeStruct
Name As String
Age As Integer
End Struct
Dim hEmp As New EmployeeStruct
hEmp.Name = "BenoƮt Minisini"
hEmp.Age = 42
Print Object.SizeOf(hEmp)