samedi 22 septembre 2018

Is there a way to get all Function (or Sub) names from a specific namespace in Visual Basic?

I found the following code regarding to a class:

    Dim NetBook As New Book("AAA","BBB", 49.99)

    Console.WriteLine("Method Names")
    Dim Info As Reflection.MethodInfo

    For Each Info In NetBook.GetType.GetMethods()
        Console.WriteLine(Info.Name)
    Next

Is that possible regarding to a namespace (or, still better than class, a module)?

Thank you.





Aucun commentaire:

Enregistrer un commentaire