title: call .net assembly from delphi (PSafeArray)
body: <p>I have assembly written on .net
  Here is function from that assembly:</p>
  
  <pre><code>public class OMG{
      public Result[] test(){
          var tmp = new List&lt;Result&gt;();
          tmp.Add(new Result(){ var1 = 1, var2 = "test" });
          tmp.Add(new Result(){ var1 = 2, var2 = "test1" });
          return tmp.ToArray();
      }
  }
  public class Result{
      public int var1;
      public string var2;
  }
  </code></pre>
  
  <p>So, i invoke this function from delphi.</p>
  
  <pre><code>var
  tmp : PSafeArray;
  
  ...
  tmp:= omg.test();
  </code></pre>
  
  <p>So,here i get PSafeArray, how can i actually retrieve data?</p>