Mega Code Archive
Type GetTypeFromHandle gets the type referenced by the specified type handle
Imports System
Class MyGetTypeFromCLSID
Public Shared Sub Main()
Dim myClass1 As New MyClass1()
Dim myClass1Type As Type = Type.GetTypeFromHandle(Type.GetTypeHandle(MyClass1))
Console.WriteLine(("The Names of the Attributes :" + myClass1Type.Attributes.ToString()))
End Sub
End Class
Public Class MyClass1
Private x As Integer = 0
Public Function MyMethod() As Integer
Return x
End Function 'MyMethod
End Class