Extract data out of a seemingly complex structure

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Curious

    Extract data out of a seemingly complex structure

    I define a variable ("result") as object. Its value is set by
    following code:

    object result = splusObject.Get Type().InvokeMe mber("ReturnVal ue",
    System.Reflecti on.BindingFlags .GetProperty, null, splusObject, null);

    Then both bad news and good news. Bad is that "result" seems to be a
    matrix. In my debugger, it is:

    Dimensions:[1..2, 1..2]}
    [1, 1] 112

    Good news is that it contains the correct value I want, "112".

    I've tried to extract "112" out of result, but to no avail.

    Any advice on how to extract "112" out of this complex structure of
    result? Thanks!



  • Curious

    #2
    Re: Extract data out of a seemingly complex structure

    Thanks Stanimir! It works.

    Comment

    Working...