Geeks,
Please follow the following code, in this code you need to know the class & method name with parameters of which you are calling from your code.
Imports
System
Imports System.Reflection
Imports System.Reflection.Emit
Imports System.Threading
Module
Module1
Dim M
Sub Main()
yAssembly As Assembly = Assembly.LoadFrom("SamAsm.exe")
Dim Objtype As Type = MyAssembly.GetType("SamAsmType")
Dim ObjMethodInfo As MethodInfo = Objtype.GetMethod("Main")
ObjMethodInfo.Invoke(
Nothing, New String() {Nothing})
End Sub
End
Module