I find it’s a bit weird to check the type of .NET Class in PowerShell.
For example, if you issue the command:
[system.math] | gm
You’ll get a long list of generic members with the type name on the first line:
But if you run:
[system.math] | gm -static
It gives you the real static members of this class with the type:
It looks confusing to me. From my understanding, the -static parameter only tells the command to retrieve static members but should not affect the type if returns.
Can anyone explain why it behaves like this?