[Mono-bugs] [Bug 81244][Wis] New - Add convenience-function ReturnParameterInstructions

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Mar 27 13:11:24 EDT 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by classdevelopment at a-softtech.com.

http://bugzilla.ximian.com/show_bug.cgi?id=81244

--- shadow/81244	2007-03-27 12:11:24.000000000 -0500
+++ shadow/81244.tmp.24725	2007-03-27 12:11:24.000000000 -0500
@@ -0,0 +1,38 @@
+Bug#: 81244
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Mono.Cecil
+AssignedTo: mono at evain.net                            
+ReportedBy: ClassDevelopment at A-SoftTech.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Add convenience-function ReturnParameterInstructions
+
+I’ve got a feature request for Cecil ;)
+
+I’d like to have a function that delivers the last IL-Instructions that 
+are used as parameters for a given method call.
+
+Example: I’ve got a MethodBody body containing the instructions
+
+Now I’d like a function: public Instruction[] ReturnParameterInstructions 
+(Instruction callInstruction)
+
+if the callInstruction would be a call to a function with (int, String, 
+String) Parameters the ReturnParameterInstructions would return an Array 
+containing the three instructions that were the (first/) last 
+Instructions to modifiy that value
+
+Rationale:
+Cecil is often used to analyze existing class libraries. The described 
+function would be useful for analyzing the behaviour of libraries. It 
+would especially allow for an easy way to determine if a function gets 
+called with constant/static parameters.


More information about the mono-bugs mailing list