I don't know VB.NET at all, but wouldn't it be easier just to declare two classes:
Any fields that are do not exist for certain node types will just be returned as null values.
Code:
class NavRoot dim children() as NavItem; dim type as string; dim name as string; dim id as string; end class class NavItem dim children() as NavItem; dim type as string; dim name as string; dim id as string; dim exchangeId as string; dim countryCode as string; dim venue as string; dim marketType as string; dim marketStartTime as string; dim startTime as string; dim numberOfWinners as string; end class


Comment