ATMLDataAccessLibrary.db.beans.BASEBean.findRoot C# (CSharp) Method

findRoot() public method

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

Usage Example

Beispiel #1
0
        public BASEBean findRoot()
        {
            BASEBean root = null;

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