Click or drag to resize

IOperation Interface

Root type for representing the abstract semantics of C# and VB statements and expressions.

Namespace:  Microsoft.CodeAnalysis
Assembly:  Microsoft.CodeAnalysis (in Microsoft.CodeAnalysis.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
public interface IOperation

The IOperation type exposes the following members.

Public propertyConstantValue
If the operation is an expression that evaluates to a constant value, HasValue is true and Value is the value of the expression. Otherwise, HasValue is false.
Public propertyIsInvalid
Indicates whether the operation is invalid, either semantically or syntactically.
Public propertyKind
Identifies the kind of the operation.
Public propertySyntax
Syntax that was analyzed to produce the operation.
Public propertyType
Result type of the operation, or null if the operation does not produce a result.
This interface is reserved for implementation by its associated APIs. We reserve the right to change it in the future.
See Also