OperationExtensions.GetCorrespondingOperation(IBranchOperation) 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.
Gets either a loop or a switch operation that corresponds to the given branch operation.
public static Microsoft.CodeAnalysis.IOperation GetCorrespondingOperation (this Microsoft.CodeAnalysis.Operations.IBranchOperation operation);
public static Microsoft.CodeAnalysis.IOperation? GetCorrespondingOperation (this Microsoft.CodeAnalysis.Operations.IBranchOperation operation);
static member GetCorrespondingOperation : Microsoft.CodeAnalysis.Operations.IBranchOperation -> Microsoft.CodeAnalysis.IOperation
<Extension()>
Public Function GetCorrespondingOperation (operation As IBranchOperation) As IOperation
Parameters
- operation
- IBranchOperation
The branch operation for which a corresponding operation is looked up
Returns
The corresponding operation or null
in case not found (e.g. no loop or switch syntax, or the branch is not a break or continue)
Exceptions
operation
is null
The operation is a part of Control Flow Graph
Applies to
Collabora con noi su GitHub
L'origine di questo contenuto è disponibile in GitHub, in cui è anche possibile creare ed esaminare i problemi e le richieste pull. Per ulteriori informazioni, vedere la guida per i collaboratori.