本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}