Table of Contents

Method DescendantsAndSelf

Namespace
DocWright.Reporting
Assembly
DocWright.Reporting.dll

DescendantsAndSelf()

Enumerates every element in this subtree, including this one, depth first in document order.

public IEnumerable<RdlElement> DescendantsAndSelf()

Returns

IEnumerable<RdlElement>

The elements.

Remarks

Iterative rather than recursive: the depth of a definition is attacker-controlled, and a recursive enumerator would turn a hostile file into a StackOverflowException that no caller can catch. The reader bounds depth on the way in; this bounds it again for every caller that walks a tree built some other way.