C
crain
hi i have an assembly that has a funciton hello that simply returns a
string.
Dim a As Reflection.Assembly =
Reflection.Assembly.LoadFrom("E:\Practice\ClassAssembly\obj\Debug\ClassAssem
bly.dll")
Dim types() As Type = a.GetTypes()
Dim t As Type
For Each t In types
MessageBox.Show(t.FullName())
Dim mm() As MemberInfo
Dim m As MemberInfo
mm = t.GetMembers()
For Each m In mm
MessageBox.Show(m.MemberType.ToString() + " " + m.Name)
Next
Next
this is my code to get all the methods in the assembly. how do i know that
hello is a userdefined function because this code returns all the methods.
thanx
string.
Dim a As Reflection.Assembly =
Reflection.Assembly.LoadFrom("E:\Practice\ClassAssembly\obj\Debug\ClassAssem
bly.dll")
Dim types() As Type = a.GetTypes()
Dim t As Type
For Each t In types
MessageBox.Show(t.FullName())
Dim mm() As MemberInfo
Dim m As MemberInfo
mm = t.GetMembers()
For Each m In mm
MessageBox.Show(m.MemberType.ToString() + " " + m.Name)
Next
Next
this is my code to get all the methods in the assembly. how do i know that
hello is a userdefined function because this code returns all the methods.
thanx