LSLib.LS.Node.TotalChildCount C# (CSharp) Méthode

TotalChildCount() public méthode

public TotalChildCount ( ) : int
Résultat int
        public int TotalChildCount()
        {
            int count = 0;
            foreach (var key in Children)
            {
                foreach (var child in key.Value)
                {
                    count += 1 + child.TotalChildCount();
                }
            }

            return count;
        }