Click or drag to resize

ICompoundAssignmentExpression Interface



Represents an assignment expression that includes a binary operation.

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

The ICompoundAssignmentExpression type exposes the following members.

Properties
  NameDescription
Public propertyBinaryOperationKind
Kind of binary operation.
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.
(Inherited from IOperation.)
Public propertyIsInvalid
Indicates whether the operation is invalid, either semantically or syntactically.
(Inherited from IOperation.)
Public propertyKind
Identifies the kind of the operation.
(Inherited from IOperation.)
Public propertyOperatorMethod
Operation method used by the operation, null if the operation does not use an operator method.
(Inherited from IHasOperatorMethodExpression.)
Public propertySyntax
Syntax that was analyzed to produce the operation.
(Inherited from IOperation.)
Public propertyTarget
Target of the assignment.
(Inherited from IAssignmentExpression.)
Public propertyType
Result type of the operation, or null if the operation does not produce a result.
(Inherited from IOperation.)
Public propertyUsesOperatorMethod
True if and only if the operation is performed by an operator method.
(Inherited from IHasOperatorMethodExpression.)
Public propertyValue
Value to be assigned to the target of the assignment.
(Inherited from IAssignmentExpression.)
Top
Methods
Extension Methods
  NameDescription
Public Extension MethodGetBinaryOperandsKind
Get binary operand kinds.
(Defined by UnaryAndBinaryOperationExtensions.)
Public Extension MethodGetSimpleBinaryOperationKind
Get binary operation kind independent of data type.
(Defined by UnaryAndBinaryOperationExtensions.)
Top
Remarks
This interface is reserved for implementation by its associated APIs. We reserve the right to change it in the future.
See Also