TreeComparer<TNode>.ComputeMatch Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a match map of oldRoot descendants to newRoot descendants.
public Microsoft.CodeAnalysis.Differencing.Match<TNode> ComputeMatch(TNode oldRoot, TNode newRoot, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TNode,TNode>> knownMatches = default);
public Microsoft.CodeAnalysis.Differencing.Match<TNode> ComputeMatch(TNode oldRoot, TNode newRoot, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TNode,TNode>>? knownMatches = default);
member this.ComputeMatch : 'Node * 'Node * seq<System.Collections.Generic.KeyValuePair<'Node, 'Node>> -> Microsoft.CodeAnalysis.Differencing.Match<'Node>
Public Function ComputeMatch (oldRoot As TNode, newRoot As TNode, Optional knownMatches As IEnumerable(Of KeyValuePair(Of TNode, TNode)) = Nothing) As Match(Of TNode)
Parameters
- oldRoot
- TNode
- newRoot
- TNode
- knownMatches
- IEnumerable<KeyValuePair<TNode,TNode>>