Get-ILDisassembly now accepts ConstructorInfo objects

This commit is contained in:
mattifestation 2013-11-07 08:04:16 -05:00
parent 5b4b9924d5
commit 306a84fe81
1 changed files with 4 additions and 3 deletions

View File

@ -68,9 +68,9 @@ Disassembles the System.Array.BinarySearch(Array, Object) method
.INPUTS .INPUTS
System.Reflection.MethodInfo System.Reflection.MethodInfo, System.Reflection.ConstructorInfo
The method description containing the raw IL bytecodes. A method or constructor description containing the raw IL bytecodes.
.OUTPUTS .OUTPUTS
@ -88,7 +88,8 @@ http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-335.pdf
Param ( Param (
[Parameter(Mandatory = $True, ValueFromPipeline = $True)] [Parameter(Mandatory = $True, ValueFromPipeline = $True)]
[System.Reflection.MethodInfo] [ValidateScript({$_ -is [Reflection.MethodInfo] -or $_ -is [Reflection.ConstructorInfo]})]
[Object]
$MethodInfo $MethodInfo
) )