Lire en anglais

Partager via


OperationExtensions Class

Definition

C#
public static class OperationExtensions
Inheritance
OperationExtensions

Methods

Descendants(IOperation)

Returns all the descendant operations of the given operation in evaluation order.

DescendantsAndSelf(IOperation)

Returns all the descendant operations of the given operation including the given operation in evaluation order.

GetArgumentName(IDynamicIndexerAccessOperation, Int32)

Get an optional argument name for a named argument to the given dynamicOperation at the given index.

GetArgumentName(IDynamicInvocationOperation, Int32)

Get an optional argument name for a named argument to the given dynamicOperation at the given index.

GetArgumentName(IDynamicObjectCreationOperation, Int32)

Get an optional argument name for a named argument to the given dynamicOperation at the given index.

GetArgumentRefKind(IDynamicIndexerAccessOperation, Int32)

Get an optional argument RefKind for an argument at the given index to the given dynamicOperation. Returns a non-null argument RefKind for C#. Always returns null for VB as RefKind cannot be specified for an argument in VB.

GetArgumentRefKind(IDynamicInvocationOperation, Int32)

Get an optional argument RefKind for an argument at the given index to the given dynamicOperation. Returns a non-null argument RefKind for C#. Always returns null for VB as RefKind cannot be specified for an argument in VB.

GetArgumentRefKind(IDynamicObjectCreationOperation, Int32)

Get an optional argument RefKind for an argument at the given index to the given dynamicOperation. Returns a non-null argument RefKind for C#. Always returns null for VB as RefKind cannot be specified for an argument in VB.

GetCorrespondingOperation(IBranchOperation)

Gets either a loop or a switch operation that corresponds to the given branch operation.

GetDeclaredVariables(IVariableDeclarationGroupOperation)

Gets all the declared local variables in the given declarationGroup.

GetDeclaredVariables(IVariableDeclarationOperation)

Gets all the declared local variables in the given declaration.

GetFunctionPointerSignature(IFunctionPointerInvocationOperation)

Helper function to simplify the access to the function pointer signature of an FunctionPointerInvocationOperation

GetVariableInitializer(IVariableDeclaratorOperation)

Gets the variable initializer for the given declarationOperation, checking to see if there is a parent initializer if the single variable initializer is null.

Applies to

Produit Versions
Roslyn 4.2.0, 4.3.0, 4.4.0, 4.5.0, 4.6.0, 4.7.0, 4.8.0, 4.9.2, 3.0.0, 3.1.0, 3.2.0, 3.2.1, 3.3.1, 3.4.0, 3.5.0, 3.6.0, 3.7.0, 3.8.0, 3.9.0, 3.10.0, 3.11.0, 4.0.1, 4.1.0, 4.12.2, 4.13.0