Created
May 14, 2017 16:27
-
-
Save Stephanevg/8c5d7bd8415f2c3e1c1b6b25183bf246 to your computer and use it in GitHub Desktop.
Return class constructors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Get-ClassConstructors { | |
Param( | |
$ClassName | |
) | |
$v = [$ClassName].GetConstructors() | % {$_.GetParameters()} | select member,Name,defaultvalue | |
return $v | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment