Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

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

$
0
0

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


Viewing all articles
Browse latest Browse all 3333

Trending Articles