共用方式為


IOperation.ConstantValue Property

Definition

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:
 property Microsoft::CodeAnalysis::Optional<System::Object ^> ConstantValue { Microsoft::CodeAnalysis::Optional<System::Object ^> get(); };
public Microsoft.CodeAnalysis.Optional<object> ConstantValue { get; }
public Microsoft.CodeAnalysis.Optional<object?> ConstantValue { get; }
member this.ConstantValue : Microsoft.CodeAnalysis.Optional<obj>
Public ReadOnly Property ConstantValue As Optional(Of Object)

Property Value

Applies to