src/GenFx.Components/Trees/TreeEntityExtensions.cs
/// <summary>
/// Returns the number of nodes contained in the tree.
/// </summary>
/// <returns>The number of nodes contained in the tree.</returns>
Returns the number of nodes contained in the tree.
Returns the number of nodes contained in the tree .
public static int GetSize(this TreeEntityBase treeEntity)
        {
            if (treeEntity is null)
            {
                throw new ArgumentNullException(nameof(treeEntity));
            }
            return TreeEntityExtensions.GetSubtreeSize(treeEntity.RootNode);
        }
public static int GetSize ( this TreeEntityBase treeEntity ) { if ( treeEntity is null ) { throw new ArgumentNullException ( nameof ( treeEntity ) ) ; } return TreeEntityExtensions . GetSubtreeSize ( treeEntity . RootNode ) ; }
Returns the number of nodes contained in the tree.
Returns the number of nodes contained in the tree .
The number of nodes contained in the tree.
The number of nodes contained in the tree .
TreeEntityBase
this