BExIS.Dcm.CreateDatasetWizard.CreateTaskmanager.IsParentChildfromRoot C# (CSharp) Метод

IsParentChildfromRoot() публичный Метод

XXX this funktion needs to be replaced its only to know if a usage schould bee a metadataAttributeUsage or MetadataNestedAttributeUsage
public IsParentChildfromRoot ( ) : bool
Результат bool
        public bool IsParentChildfromRoot()
        {
            if (IsRoot(Current().Parent) ||
                IsRoot(Current().Parent.Parent) ||
                IsRoot(Current().Parent.Parent.Parent) ||
               IsRoot(Current().Parent.Parent.Parent.Parent))
            {
                return true;
            }
            else
            {
                return false;
            }
        }