Exemple #1
0
        private static PermissionSet GetPermissionSetExtensions(string extensionXml)
        {
            SecurityElement permissionSetXml = SecurityElement.FromString(extensionXml);

            if (XMLUtil.GetClassFromElement((SecurityElement)permissionSetXml.Children[0], true) != (Type)null)
            {
                return((PermissionSet) new NamedPermissionSet(permissionSetXml));
            }
            return((PermissionSet)null);
        }
        // Token: 0x06001C33 RID: 7219 RVA: 0x00060F28 File Offset: 0x0005F128
        private static PermissionSet GetPermissionSetExtensions(string extensionXml)
        {
            SecurityElement securityElement = SecurityElement.FromString(extensionXml);
            SecurityElement el = (SecurityElement)securityElement.Children[0];

            if (XMLUtil.GetClassFromElement(el, true) != null)
            {
                return(new NamedPermissionSet(securityElement));
            }
            return(null);
        }