I have a XML structure, that looks like this:
<Commands>
<Command id="Prefix" classId="prefix">
<ShortDescription>A Command</ShortDescription>
<LongDescription>A Prefix Command</LongDescription>
<Subcommands>
<CommandReference commandID="PrefixQuery" syntax="query"></CommandReference>
<CommandReference commandID="PrefixRevert" syntax="revert"></CommandReference>
<CommandReference commandID="PrefixSet" syntax="set"></CommandReference>
</Subcommands>
</Command>
</Commands
It's used to create a hirarchy of Commands while loading the Programm.
Now, im trying to load this structure into a list of UnlinkedCommand objects, that look like this:
struct UnlinkedCommand
{
public string commandID;
public string commandClassID;
public string shortDescription;
public string longDescription;
public List<CommandReference> subcommands;
}
With a CommandReference looking like this:
struct CommandReference
{
public string commandID;
public string syntax;
}
Im stuck on how to create a nested Linq Query that can create the List of Subcommands while querying the list of Commands and im not sure if it is even possible from what i've read about Linq queries.
