Partilhar via


SyntaxNode.IsEquivalentTo Method

Definition

Overloads

IsEquivalentTo(SyntaxNode)

Determine whether this node is structurally equivalent to another.

IsEquivalentTo(SyntaxNode, Boolean)

Determines if two nodes are the same, disregarding trivia differences.

IsEquivalentTo(SyntaxNode)

Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs

Determine whether this node is structurally equivalent to another.

public:
 bool IsEquivalentTo(Microsoft::CodeAnalysis::SyntaxNode ^ other);
public bool IsEquivalentTo (Microsoft.CodeAnalysis.SyntaxNode other);
public bool IsEquivalentTo (Microsoft.CodeAnalysis.SyntaxNode? other);
member this.IsEquivalentTo : Microsoft.CodeAnalysis.SyntaxNode -> bool
Public Function IsEquivalentTo (other As SyntaxNode) As Boolean

Parameters

other
SyntaxNode

Returns

Applies to

IsEquivalentTo(SyntaxNode, Boolean)

Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs
Source:
SyntaxNode.cs

Determines if two nodes are the same, disregarding trivia differences.

public bool IsEquivalentTo (Microsoft.CodeAnalysis.SyntaxNode node, bool topLevel = false);
member this.IsEquivalentTo : Microsoft.CodeAnalysis.SyntaxNode * bool -> bool
Public Function IsEquivalentTo (node As SyntaxNode, Optional topLevel As Boolean = false) As Boolean

Parameters

node
SyntaxNode

The node to compare against.

topLevel
Boolean

If true then the nodes are equivalent if the contained nodes and tokens declaring metadata visible symbolic information are equivalent, ignoring any differences of nodes inside method bodies or initializer expressions, otherwise all nodes and tokens must be equivalent.

Returns

Applies to