src/Misc/EFTools/XmlCore/Model/EFObject.cs
/// <summary>
///     Walks up the tree and returns the first item without a parent.
/// </summary>
/// <returns></returns>
Walks up the tree and returns the first item without a parent.
Walks up the tree and returns the first item without a parent .
internal EFContainer GetRoot()
        {
            if (Parent == null)
            {
                var root = this as EFContainer;
                Debug.Assert(root != null, "Unexpected! root is not an instance of EFContainer.  Something is wrong.");
                return root;
            }
            var item = Parent;
            while (item.Parent != null)
            {
                item = item.Parent;
            }
            return item;
        }
internal EFContainer GetRoot ( ) { if ( Parent == null ) { var root = this as EFContainer ; Debug . Assert ( root != null , " " ) ; return root ; } var item = Parent ; while ( item . Parent != null ) { item = item . Parent ; } return item ; }
Walks up the tree and returns the first item without a parent.
Walks up the tree and returns the first item without a parent .
None