Imports System.IO
Imports System.Reflection
Imports System.Linq
Imports System.Xml.Linq
Public Class MainClass
Public Shared Sub Main
Dim NameList = From method In _
(From type In Assembly.GetExecutingAssembly.GetTypes(), _
method2 In type.GetMembers() _
Where method2.MemberType = MemberTypes.Method AndAlso _
CType(method2, MethodInfo).IsPublic _
Select Item = CType(method2, MethodInfo) _
Order By Item.Name) _
Select method.Name _
Distinct
For Each m In NameList
Console.WriteLine(m)
Next
End Sub
End Class
|