NDepend.API Documentation
AddRange Method
NDepend.CodeQuery Namespace > IGroupOfGroups Interface : AddRange Method
The sequence of groups to add.
Add a sequence of groups to this group of groups children.
Syntax

Parameters

groups
The sequence of groups to add.

Return Value

The new group of groups object representing this group of groups.
Exceptions
ExceptionDescription
A group in groups doesn't have the same controller as this.
Remarks
Since code query objects are immutable, the old group of groups object have been replaced in the parent hierarchy by the new returned group of groups object.If groups contains some group that already have this group of groups for parent, the algorithm don't add them a second time.
Requirements

Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

IGroupOfGroups Interface
IGroupOfGroups Members