From 306a84fe81ef6a1d252eec4e0a9422480c6c52df Mon Sep 17 00:00:00 2001 From: mattifestation Date: Thu, 7 Nov 2013 08:04:16 -0500 Subject: Get-ILDisassembly now accepts ConstructorInfo objects --- ReverseEngineering/Get-ILDisassembly.ps1 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ReverseEngineering/Get-ILDisassembly.ps1 b/ReverseEngineering/Get-ILDisassembly.ps1 index b7293e0..af0c2a1 100644 --- a/ReverseEngineering/Get-ILDisassembly.ps1 +++ b/ReverseEngineering/Get-ILDisassembly.ps1 @@ -68,9 +68,9 @@ Disassembles the System.Array.BinarySearch(Array, Object) method .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 @@ -88,7 +88,8 @@ http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-335.pdf Param ( [Parameter(Mandatory = $True, ValueFromPipeline = $True)] - [System.Reflection.MethodInfo] + [ValidateScript({$_ -is [Reflection.MethodInfo] -or $_ -is [Reflection.ConstructorInfo]})] + [Object] $MethodInfo ) -- cgit v1.2.3