title: Passing complex information via COM to C# from Delphi code
body: <p>For various reasons, such as protecting investment, etc. I need to pass a series of complex records (numerous fields and records) back and forth between Delphi and a C# program. I guess I should be using IEnumVariant, but don't seem to able to design this with the typelibrary designer.</p>
  
  <p>Any help would be appreciated.</p>
  
  <p>Thanks</p>
  
  <p><strong>Update</strong></p>
  
  <p>I guess what I am trying to ask needs some explanation of the complexity of the data.</p>
  
  <p>I need to export to C# (or any other language really), via COM a collection of 'records', each made up of a collection of 'fields', each made up of a number of attributes.</p>
  
  <p>So it is a collection of a collection of a collection! Don't ask me how we got here, we just have.</p>
  
  <p>So I'm have Attribute -> Field -> Record sort of structure.  I have a grasp of what I need to export (I can't post any details here for company reasons), but don't know how to start to export that data in COM.</p>
  
  <p>Probably I should start by creating a test program from scratch which will mimic the structures I need, and then gradually COMize them and see where I get to.</p>