當前位置: 首頁>>代碼示例>>C#>>正文


C# BinaryReader.ReadSyntaxNode方法代碼示例

本文整理匯總了C#中System.IO.BinaryReader.ReadSyntaxNode方法的典型用法代碼示例。如果您正苦於以下問題:C# BinaryReader.ReadSyntaxNode方法的具體用法?C# BinaryReader.ReadSyntaxNode怎麽用?C# BinaryReader.ReadSyntaxNode使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在System.IO.BinaryReader的用法示例。


在下文中一共展示了BinaryReader.ReadSyntaxNode方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: UvssSelectorWithNavigationExpressionSyntax

        /// <summary>
        /// Initializes a new instance of the <see cref="UvssSelectorWithNavigationExpressionSyntax"/> class from
        /// the specified binary reader.
        /// </summary>
        /// <param name="reader">The binary reader with which to deserialize the object.</param>
        /// <param name="version">The file version of the data being read.</param>
        internal UvssSelectorWithNavigationExpressionSyntax(BinaryReader reader, Int32 version)
            : base(reader, version)
        {
            this.Selector = reader.ReadSyntaxNode<UvssSelectorSyntax>(version);
            ChangeParent(this.Selector);

            this.NavigationExpression = reader.ReadSyntaxNode<UvssNavigationExpressionSyntax>(version);
            ChangeParent(this.NavigationExpression);
        }
開發者ID:RUSshy,項目名稱:ultraviolet,代碼行數:15,代碼來源:UvssSelectorWithNavigationExpressionSyntax.cs

示例2: UvssPseudoClassSyntax

        /// <summary>
        /// Initializes a new instance of the <see cref="UvssPseudoClassSyntax"/> class from
        /// the specified binary reader.
        /// </summary>
        /// <param name="reader">The binary reader with which to deserialize the object.</param>
        /// <param name="version">The file version of the data being read.</param>
        internal UvssPseudoClassSyntax(BinaryReader reader, Int32 version)
            : base(reader, version)
        {
            this.ColonToken = reader.ReadSyntaxNode<SyntaxToken>(version);
            ChangeParent(this.ColonToken);

            this.ClassNameIdentifier = reader.ReadSyntaxNode<UvssIdentifierBaseSyntax>(version);
            ChangeParent(this.ClassNameIdentifier);
        }
開發者ID:RUSshy,項目名稱:ultraviolet,代碼行數:15,代碼來源:UvssPseudoClassSyntax.cs

示例3: UvssPlaySfxTriggerActionSyntax

        /// <summary>
        /// Initializes a new instance of the <see cref="UvssPlaySfxTriggerActionSyntax"/> class from
        /// the specified binary reader.
        /// </summary>
        /// <param name="reader">The binary reader with which to deserialize the object.</param>
        /// <param name="version">The file version of the data being read.</param>
        internal UvssPlaySfxTriggerActionSyntax(BinaryReader reader, Int32 version)
            : base(reader, version)
        {
            this.PlaySfxKeyword = reader.ReadSyntaxNode<SyntaxToken>(version);
            ChangeParent(this.PlaySfxKeyword);

            this.Value = reader.ReadSyntaxNode<UvssPropertyValueWithBracesSyntax>(version);
            ChangeParent(this.Value);
        }
開發者ID:RUSshy,項目名稱:ultraviolet,代碼行數:15,代碼來源:UvssPlaySfxTriggerActionSyntax.cs

示例4: UvssSelectorPartTypeSyntax

        /// <summary>
        /// Initializes a new instance of the <see cref="UvssSelectorPartTypeSyntax"/> class from
        /// the specified binary reader.
        /// </summary>
        /// <param name="reader">The binary reader with which to deserialize the object.</param>
        /// <param name="version">The file version of the data being read.</param>
        internal UvssSelectorPartTypeSyntax(BinaryReader reader, Int32 version)
            : base(reader, version)
        {
            this.SelectedTypeIdentifier = reader.ReadSyntaxNode<UvssIdentifierSyntax>(version);
            ChangeParent(this.SelectedTypeIdentifier);

            this.ExclamationMarkToken = reader.ReadSyntaxNode<SyntaxToken>(version);
            ChangeParent(this.ExclamationMarkToken);
        }
開發者ID:RUSshy,項目名稱:ultraviolet,代碼行數:15,代碼來源:UvssSelectorPartTypeSyntax.cs

示例5: UvssSelectorPartNameSyntax

        /// <summary>
        /// Initializes a new instance of the <see cref="UvssSelectorPartNameSyntax"/> class from
        /// the specified binary reader.
        /// </summary>
        /// <param name="reader">The binary reader with which to deserialize the object.</param>
        /// <param name="version">The file version of the data being read.</param>
        internal UvssSelectorPartNameSyntax(BinaryReader reader, Int32 version)
            : base(reader, version)
        {
            this.HashToken = reader.ReadSyntaxNode<SyntaxToken>(version);
            ChangeParent(this.HashToken);

            this.SelectedNameIdentifier = reader.ReadSyntaxNode<UvssIdentifierSyntax>(version);
            ChangeParent(this.SelectedNameIdentifier);
        }
開發者ID:RUSshy,項目名稱:ultraviolet,代碼行數:15,代碼來源:UvssSelectorPartNameSyntax.cs

示例6: UvssCultureDirectiveSyntax

        /// <summary>
        /// Initializes a new instance of the <see cref="UvssCultureDirectiveSyntax"/> class from
        /// the specified binary reader.
        /// </summary>
        /// <param name="reader">The binary reader with which to deserialize the object.</param>
        /// <param name="version">The file version of the data being read.</param>
        internal UvssCultureDirectiveSyntax(BinaryReader reader, Int32 version)
            : base(reader, version)
        {
            this.DirectiveToken = reader.ReadSyntaxNode<SyntaxToken>(version);
            ChangeParent(this.DirectiveToken);

            this.CultureValue = reader.ReadSyntaxNode<UvssPropertyValueWithBracesSyntax>(version);
            ChangeParent(this.CultureValue);
        }
開發者ID:RUSshy,項目名稱:ultraviolet,代碼行數:15,代碼來源:UvssCultureDirectiveSyntax.cs

示例7: WithTwoChildren

            /// <summary>
            /// Initializes a new instance of the <see cref="WithTwoChildren"/> class from
            /// the specified binary reader.
            /// </summary>
            /// <param name="reader">The binary reader with which to deserialize the object.</param>
            /// <param name="version">The file version of the data being read.</param>
            private WithTwoChildren(BinaryReader reader, Int32 version)
                : base(reader, version)
            {
                this.child0 = reader.ReadSyntaxNode(version);
                ChangeParent(this.child0);

                this.child1 = reader.ReadSyntaxNode(version);
                ChangeParent(this.child1);
            }
開發者ID:RUSshy,項目名稱:ultraviolet,代碼行數:15,代碼來源:SyntaxList.WithTwoChildren.cs

示例8: UvssEscapedIdentifierSyntax

        /// <summary>
        /// Initializes a new instance of the <see cref="UvssEmptyStatementSyntax"/> class from
        /// the specified binary reader.
        /// </summary>
        /// <param name="reader">The binary reader with which to deserialize the object.</param>
        /// <param name="version">The file version of the data being read.</param>
        internal UvssEscapedIdentifierSyntax(BinaryReader reader, Int32 version)
            : base(reader, version)
        {
            this.OpenBracketToken = reader.ReadSyntaxNode<SyntaxToken>(version);
            ChangeParent(this.OpenBracketToken);

            this.IdentifierToken = reader.ReadSyntaxNode<SyntaxToken>(version);
            ChangeParent(this.IdentifierToken);

            this.CloseBracketToken = reader.ReadSyntaxNode<SyntaxToken>(version);
            ChangeParent(this.CloseBracketToken);
        }
開發者ID:RUSshy,項目名稱:ultraviolet,代碼行數:18,代碼來源:UvssEscapedIdentifierSyntax.cs

示例9: UvssBlockSyntax

        /// <summary>
        /// Initializes a new instance of the <see cref="UvssBlockSyntax"/> class from
        /// the specified binary reader.
        /// </summary>
        /// <param name="reader">The binary reader with which to deserialize the object.</param>
        /// <param name="version">The file version of the data being read.</param>
        internal UvssBlockSyntax(BinaryReader reader, Int32 version)
            : base(reader, version)
        {
            this.OpenCurlyBraceToken = reader.ReadSyntaxNode<SyntaxToken>(version);
            ChangeParent(this.OpenCurlyBraceToken);

            this.Content = reader.ReadSyntaxList<SyntaxNode>(version);
            ChangeParent(this.Content.Node);

            this.CloseCurlyBraceToken = reader.ReadSyntaxNode<SyntaxToken>(version);
            ChangeParent(this.CloseCurlyBraceToken);
        }
開發者ID:RUSshy,項目名稱:ultraviolet,代碼行數:18,代碼來源:UvssBlockSyntax.cs

示例10: UvssEventTriggerArgumentList

        /// <summary>
        /// Initializes a new instance of the <see cref="UvssEventTriggerArgumentList"/> class from
        /// the specified binary reader.
        /// </summary>
        /// <param name="reader">The binary reader with which to deserialize the object.</param>
        /// <param name="version">The file version of the data being read.</param>
        internal UvssEventTriggerArgumentList(BinaryReader reader, Int32 version)
            : base(reader, version)
        {
            this.OpenParenToken = reader.ReadSyntaxNode<SyntaxToken>(version);
            ChangeParent(this.OpenParenToken);

            this.Arguments = reader.ReadSeparatedSyntaxList<SyntaxNode>(version);
            ChangeParent(this.Arguments.Node);

            this.CloseParenToken = reader.ReadSyntaxNode<SyntaxToken>(version);
            ChangeParent(this.CloseParenToken);
        }
開發者ID:RUSshy,項目名稱:ultraviolet,代碼行數:18,代碼來源:UvssEventTriggerArgumentList.cs

示例11: UvssPlayStoryboardTriggerActionSyntax

        /// <summary>
        /// Initializes a new instance of the <see cref="UvssPlayStoryboardTriggerActionSyntax"/> class from
        /// the specified binary reader.
        /// </summary>
        /// <param name="reader">The binary reader with which to deserialize the object.</param>
        /// <param name="version">The file version of the data being read.</param>
        internal UvssPlayStoryboardTriggerActionSyntax(BinaryReader reader, Int32 version)
            : base(reader, version)
        {
            this.PlayStoryboardKeyword = reader.ReadSyntaxNode<SyntaxToken>(version);
            ChangeParent(this.PlayStoryboardKeyword);

            this.Selector = reader.ReadSyntaxNode<UvssSelectorWithParenthesesSyntax>(version);
            ChangeParent(this.Selector);

            this.Value = reader.ReadSyntaxNode<UvssPropertyValueWithBracesSyntax>(version);
            ChangeParent(this.Value);
        }
開發者ID:RUSshy,項目名稱:ultraviolet,代碼行數:18,代碼來源:UvssPlayStoryboardTriggerActionSyntax.cs

示例12: UvssPropertyValueWithBracesSyntax

        /// <summary>
        /// Initializes a new instance of the <see cref="UvssPropertyValueWithBracesSyntax"/> class from
        /// the specified binary reader.
        /// </summary>
        /// <param name="reader">The binary reader with which to deserialize the object.</param>
        /// <param name="version">The file version of the data being read.</param>
        internal UvssPropertyValueWithBracesSyntax(BinaryReader reader, Int32 version)
            : base(reader, version)
        {
            this.OpenCurlyBrace = reader.ReadSyntaxNode<SyntaxToken>(version);
            ChangeParent(this.OpenCurlyBrace);

            this.ContentToken = reader.ReadSyntaxNode<SyntaxToken>(version);
            ChangeParent(this.ContentToken);

            this.CloseCurlyBrace = reader.ReadSyntaxNode<SyntaxToken>(version);
            ChangeParent(this.CloseCurlyBrace);
        }
開發者ID:RUSshy,項目名稱:ultraviolet,代碼行數:18,代碼來源:UvssPropertyValueWithBracesSyntax.cs

示例13: UvssNavigationExpressionIndexerSyntax

        /// <summary>
        /// Initializes a new instance of the <see cref="UvssNavigationExpressionIndexerSyntax"/> class from
        /// the specified binary reader.
        /// </summary>
        /// <param name="reader">The binary reader with which to deserialize the object.</param>
        /// <param name="version">The file version of the data being read.</param>
        internal UvssNavigationExpressionIndexerSyntax(BinaryReader reader, Int32 version)
            : base(reader, version)
        {
            this.OpenBracketToken = reader.ReadSyntaxNode<SyntaxToken>(version);
            ChangeParent(this.OpenBracketToken);

            this.NumberToken = reader.ReadSyntaxNode<SyntaxToken>(version);
            ChangeParent(this.NumberToken);

            this.CloseBracketToken = reader.ReadSyntaxNode<SyntaxToken>(version);
            ChangeParent(this.CloseBracketToken);
        }
開發者ID:RUSshy,項目名稱:ultraviolet,代碼行數:18,代碼來源:UvssNavigationExpressionIndexerSyntax.cs

示例14: UvssIncompleteTriggerSyntax

        /// <summary>
        /// Initializes a new instance of the <see cref="UvssIncompleteTriggerSyntax"/> class from
        /// the specified binary reader.
        /// </summary>
        /// <param name="reader">The binary reader with which to deserialize the object.</param>
        /// <param name="version">The file version of the data being read.</param>
        internal UvssIncompleteTriggerSyntax(BinaryReader reader, Int32 version)
            : base(reader, version)
        {
            this.TriggerKeyword = reader.ReadSyntaxNode<SyntaxToken>(version);
            ChangeParent(this.TriggerKeyword);

            this.QualifierToken = reader.ReadSyntaxNode<SyntaxToken>(version);
            ChangeParent(this.QualifierToken);

            this.Body = reader.ReadSyntaxNode<UvssBlockSyntax>(version);
            ChangeParent(this.Body);
        }
開發者ID:RUSshy,項目名稱:ultraviolet,代碼行數:18,代碼來源:UvssIncompleteTriggerSyntax.cs

示例15: UvssPropertyNameSyntax

        /// <summary>
        /// Initializes a new instance of the <see cref="UvssPropertyNameSyntax"/> class from
        /// the specified binary reader.
        /// </summary>
        /// <param name="reader">The binary reader with which to deserialize the object.</param>
        /// <param name="version">The file version of the data being read.</param>
        internal UvssPropertyNameSyntax(BinaryReader reader, Int32 version)
            : base(reader, version)
        {
            this.AttachedPropertyOwnerNameIdentifier = reader.ReadSyntaxNode<UvssIdentifierBaseSyntax>(version);
            ChangeParent(this.AttachedPropertyOwnerNameIdentifier);

            this.PeriodToken = reader.ReadSyntaxNode<SyntaxToken>(version);
            ChangeParent(this.PeriodToken);

            this.PropertyNameIdentifier = reader.ReadSyntaxNode<UvssIdentifierBaseSyntax>(version);
            ChangeParent(this.PropertyNameIdentifier);
        }
開發者ID:RUSshy,項目名稱:ultraviolet,代碼行數:18,代碼來源:UvssPropertyNameSyntax.cs


注:本文中的System.IO.BinaryReader.ReadSyntaxNode方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。