I have a tree stucture like this
public class CustomObject
{
public int Property1{get;set;}
public string Property2{get;set;}
public bool IsTrue{get;set;}
public List<CustomObject> Items{get;set;}
}
Now I have Collection like List and I want create a new collection from this where IsTrue == true.
Secondly I need to add new Property to the stucture at specific node and similary delete and Update the nodes.
Any suggestion is greatly appreciated.