Sep 1, 2008
0
0
Get-Constructor Fun

Here is a quick and dirty function I wrote after getting PO'd at having to look up documentation for constructors: NOTE: Jim Truher thinks long typenames are useful so I added a switch (-FullName) so you could get them if you want them. function get-Constructor ([type]$type, [Switch]$FullName){ foreach ($c in $type.GetConstr...