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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.