// Token: 0x060021B3 RID: 8627 RVA: 0x000A7DB4 File Offset: 0x000A5FB4
        private bool IsSimpleExtension(Type extensionType, int lineNumber, int linePosition, int depth, out short extensionTypeId, out bool isValueNestedExtension, out bool isValueTypeExtension, ref string args)
        {
            bool flag = false;

            extensionTypeId        = 0;
            isValueNestedExtension = false;
            isValueTypeExtension   = false;
            string        propName;
            KnownElements knownExtensionFromType = this.GetKnownExtensionFromType(extensionType, out propName);

            if (knownExtensionFromType != KnownElements.UnknownElement)
            {
                flag = this.IsSimpleExtensionArgs(lineNumber, linePosition, propName, ref args, extensionType);
            }
            if (flag)
            {
                if ((knownExtensionFromType == KnownElements.DynamicResourceExtension || knownExtensionFromType == KnownElements.StaticResourceExtension) && MarkupExtensionParser.LooksLikeAMarkupExtension(args))
                {
                    AttributeData attributeData = this.IsMarkupExtensionAttribute(extensionType, null, ref args, lineNumber, linePosition, depth, null);
                    isValueTypeExtension = attributeData.IsTypeExtension;
                    flag = (isValueTypeExtension || attributeData.IsStaticExtension);
                    isValueNestedExtension = flag;
                    if (flag)
                    {
                        args = attributeData.Args;
                    }
                    else
                    {
                        args += "}";
                    }
                }
                if (flag)
                {
                    extensionTypeId = (short)knownExtensionFromType;
                }
            }
            return(flag);
        }