示例#1
0
    public void method_7(string A_0)
    {
        int    num = 0x12;
        string str = A_0;

        if (str != null)
        {
            if (str != BookmarkStart.b("紷眹氻樽᤿", num))
            {
                if (str == BookmarkStart.b("樷礹砻缽ᐿ́", num))
                {
                    this.declaredContent_0 = DeclaredContent.RCDATA;
                    return;
                }
                if (str == BookmarkStart.b("笷縹紻樽Ŀ", num))
                {
                    this.declaredContent_0 = DeclaredContent.CDATA;
                    return;
                }
            }
            else
            {
                this.declaredContent_0 = DeclaredContent.EMPTY;
                return;
            }
        }
        throw new Exception1(string.Format(CultureInfo.CurrentUICulture, BookmarkStart.b("簷弹弻刽ℿぁ⅃≅桇⥉⍋⁍⑏㝑㩓≕硗⹙╛⹝՟䉡䍣ᵥ塧ᝩ䭫乭᥯ű味ᡵ᝷๹屻ൽ慎ﺉ", num), new object[] { A_0 }));
    }
示例#2
0
        /// <summary>
        /// Sets the contained content for the content model.
        /// </summary>
        /// <param name="dc">The text specified the permissible declared child content.</param>
        public void SetDeclaredContent(string dc)
        {
            // TODO: Validate that this can never combine with nexted groups?
            DeclaredContent declaredContent;

            if (!Enum.TryParse(dc, true, out declaredContent))
            {
                throw new SgmlParseException(string.Format(CultureInfo.CurrentUICulture, "Declared content type '{0}' is not supported", dc));
            }
            DeclaredContent = declaredContent;
        }
示例#3
0
        public void SetDeclaredContent(string value)
        {
            switch (value)
            {
            case "EMPTY":
                _declaredContent = DeclaredContent.Empty;
                break;

            case "RCDATA":
                _declaredContent = DeclaredContent.RCData;
                break;

            case "CDATA":
                _declaredContent = DeclaredContent.CData;
                break;

            default:
                throw Error.InvalidDeclaredContentTypeValue(value);
            }
        }
示例#4
0
        /// <summary>
        ///     Sets the contained content for the content model.
        /// </summary>
        /// <param name="dc">The text specified the permissible declared child content.</param>
        public void SetDeclaredContent(string dc)
        {
            // TODO: Validate that this can never combine with nexted groups?
            switch (dc)
            {
            case "EMPTY":
                this.m_declaredContent = DeclaredContent.EMPTY;
                break;

            case "RCDATA":
                this.m_declaredContent = DeclaredContent.RCDATA;
                break;

            case "CDATA":
                this.m_declaredContent = DeclaredContent.CDATA;
                break;

            default:
                throw new SgmlParseException(string.Format(CultureInfo.CurrentUICulture, "Declared content type '{0}' is not supported", dc));
            }
        }
示例#5
0
 public void SetDeclaredContent(string dc)
 {
     switch (dc) {
         case "EMPTY":
             this.DeclaredContent = DeclaredContent.EMPTY;
             break;
         case "RCDATA":
             this.DeclaredContent = DeclaredContent.RCDATA;
             break;
         case "CDATA":
             this.DeclaredContent = DeclaredContent.CDATA;
             break;
         default:
             throw new Exception(
                 String.Format("Declared content type '{0}' is not supported", dc));
     }
 }
示例#6
0
 /// <summary>
 /// Sets the contained content for the content model.
 /// </summary>
 /// <param name="dc">The text specified the permissible declared child content.</param>
 public void SetDeclaredContent(string dc)
 {
     // TODO: Validate that this can never combine with nexted groups?
     switch (dc)
     {
         case "EMPTY":
             this.m_declaredContent = DeclaredContent.EMPTY;
             break;
         case "RCDATA":
             this.m_declaredContent = DeclaredContent.RCDATA;
             break;
         case "CDATA":
             this.m_declaredContent = DeclaredContent.CDATA;
             break;
         default:
             throw new SgmlParseException(string.Format(CultureInfo.CurrentUICulture, "Declared content type '{0}' is not supported", dc));
     }
 }
示例#7
0
 /// <summary>
 /// Sets the contained content for the content model.
 /// </summary>
 /// <param name="dc">The text specified the permissible declared child content.</param>
 public void SetDeclaredContent( string dc )
 {
     // TODO: Validate that this can never combine with nexted groups?
       DeclaredContent declaredContent;
       if( !Enum.TryParse( dc, true, out declaredContent ) ) {
     throw new SgmlParseException( string.Format( CultureInfo.CurrentUICulture, "Declared content type '{0}' is not supported", dc ) );
       }
       DeclaredContent = declaredContent;
 }
 public void SetDeclaredContent(string value)
 {
     switch (value)
     {
         case "EMPTY":
             _declaredContent = DeclaredContent.Empty;
             break;
         case "RCDATA":
             _declaredContent = DeclaredContent.RCData;
             break;
         case "CDATA":
             _declaredContent = DeclaredContent.CData;
             break;
         default:
             throw Error.InvalidDeclaredContentTypeValue(value);
     }
 }