ATMLDataAccessLibrary.db.beans.BASEBean.findRoot C# (CSharp) Méthode

findRoot() public méthode

public findRoot ( ) : BASEBean
Résultat BASEBean
        public BASEBean findRoot()
        {
            BASEBean root = null;
            if (parentBean == null)
                root = this;
            else
                root = parentBean.findRoot();
            return root;
        }

Usage Example

        public BASEBean findRoot()
        {
            BASEBean root = null;

            if (parentBean == null)
            {
                root = this;
            }
            else
            {
                root = parentBean.findRoot();
            }
            return(root);
        }