Exemplo n.º 1
0
        public int GetSize()
        {
            int size = 1;

            if (FirstChild != null)
            {
                size += FirstChild.GetSize();
            }
            if (NextSibling != null)
            {
                size += NextSibling.GetSize();
            }
            return(size);
        }
Exemplo n.º 2
0
 public int GetSize()
 {
     return(Root.GetSize());
 }