November, 2006

  • Haibo Luo's weblog

    Name of Array Type

    • 0 Comments
    Two things related to array type name came to my mind while writing the previous post. Given an one-dimensional non-zero based double array x, x.GetType().ToString() returns "System.Double [*] "; we can use Type.GetType("System.Double[*]") to get hold...
  • Haibo Luo's weblog

    Late-bound Array SetValue

    • 0 Comments
    The type " System.Array " provides us a set of API for the late-bound array operations, including array creation ( Array.CreateInstance ), read/write access to array element ( Array.SetValue / Array.GetValue ). They are convenient to use. Let me start...
  • Haibo Luo's weblog

    Take Two: IL Visualizer

    • 6 Comments
    I was glad to hear many positive feedbacks about the DebuggerVisualizer for DynamicMethod ; on the sad side, it shows our lack of good LCG debugging support (on which, Mike Stall is seeking your opinion ). Recently along with the ILReader update, I...
  • Haibo Luo's weblog

    Turn MethodInfo to DynamicMethod

    • 2 Comments
    I do not know why anyone ever need this :) but few readers did ask me similar questions before. Solving this problem also demonstrates one more ILReader usage. To build a DynamicMethod, we can choose either DynamicILGenerator or DynamicILInfo . My...
  • Haibo Luo's weblog

    System.Reflection-based ILReader

    • 2 Comments
    Compared to what I posted previously here (or what was used in the DynamicMethod visualizer ), this new version introduced the Visitor pattern . A do-nothing visitor ILInstructionVisitor is included; the users can focus on their domain-specific...
Page 1 of 1 (5 items)