Assembly.GetTypes gets the types defined in this assembly.
Imports System.Reflection
Public Class Example
Public Shared Sub Main()
Dim SampleAssembly As [Assembly]
SampleAssembly = [Assembly].LoadFrom("c:\Sample.Assembly.dll")
Dim Method As MethodInfo = SampleAssembly.GetTypes()(0).GetMethod("Method1")
Dim Params As ParameterInfo() = Method.GetParameters()
Dim Param As ParameterInfo
For Each Param In Params
Console.WriteLine(("Param=" + Param.Name.ToString()))
Console.WriteLine((" Type=" + Param.ParameterType.ToString()))
Console.WriteLine((" Position=" + Param.Position.ToString()))
Console.WriteLine((" Optional=" + Param.IsOptional.ToString()))
Next Param
End Sub
End Class