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
Zusammenarbeit auf GitHub
Die Quelle für diesen Inhalt finden Sie auf GitHub, wo Sie auch Issues und Pull Requests erstellen und überprüfen können. Weitere Informationen finden Sie in unserem Leitfaden für Mitwirkende.