SenseNet.ContentRepository.SystemFolder.GetSystemContext C# (CSharp) Метод

GetSystemContext() публичный статический Метод

public static GetSystemContext ( Node child ) : GenericContent
child Node
Результат GenericContent
        public static GenericContent GetSystemContext(Node child)
        {
            SystemFolder ancestor = null;

            while ((child != null) && ((ancestor = child as SystemFolder) == null))
                child = child.Parent;

            return (ancestor != null) ? ancestor.Parent as GenericContent : null;
        }
    }