Help with parsing indented config.

Hey Folks,

Ive tried various methods but cannot figure out how to indent this file.

Item0 --Item1 ----Property1 ----Property2 ----Item2 ------Property1 ------Property2 ----Item3 ----Item4 ------Property1 ------Property2 ----Item5 --Item6 --Item7 ----Property1 --End End 

I have created recursion and even Classes however my tree always ends up wrong. Can someone write me a code block that will parse this into a Parent / Child Relationship.

by deanalewis via /r/csharp

Leave a Reply