Write then.

I need to interrogate the structure of a UDT at runtime; the structure of the function I need is like this
VB Code:
  1. public function UDTStream(pUDT as long) as string
Effectively I need to serialise the information inside a UDT. For simple types this is easy, but I need to check the types because some of the UDT's this function will encouter have UDTS within arrays of UDTS etc.

So does anyone out their know how to interrogate the structure of a UDT at runtime?