I am doing it since last many days but I am not sure how can i build my logic for this in c#. I have to build logic something like this.
For example
The scenario is A has two childs B and C. Now B has no child and C has childs records of D,E,F . same way it can be at any depth. but lets for now we are considering this case. Now I am starting from A and want to find all the descendant elements of A. so the result should be B,C,D,E,F.
but I am not sure how can i build my logic till n hierarchy. can anybody please suggest. I am planning to start my logic like this
Find all the childs of A
Now For Looop
........