Skip to content

Instantly share code, notes, and snippets.

@Stephanevg
Created May 14, 2017 16:27
Show Gist options
  • Save Stephanevg/8c5d7bd8415f2c3e1c1b6b25183bf246 to your computer and use it in GitHub Desktop.
Save Stephanevg/8c5d7bd8415f2c3e1c1b6b25183bf246 to your computer and use it in GitHub Desktop.
Return class constructors
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