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
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET