January 30th, 2016

PowerTip: Use PowerShell to find all methods from .NET Framework class

Doctor Scripto
Scripter

Summary: Learn how to find all methods from a .NET Framework class by using Windows PowerShell.

Hey, Scripting Guy! Question How can I use Windows PowerShell to show both static and dynamic methods for a .NET Framework class?

Hey, Scripting Guy! Answer Use the GetMethods method from the class. This example uses the System.Math class to return the
           method name and if the method is static:

[math].GetMethods() | Select Name, IsStatic -Unique

Category
Scripting

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.

Feedback