Click or drag to resize

TypedConstant Class



Represents a constant value used as an argument to a custom attribute.
Inheritance Hierarchy
SystemValueType
  Microsoft.CodeAnalysisTypedConstant

Namespace:  Microsoft.CodeAnalysis
Assembly:  Microsoft.CodeAnalysis (in Microsoft.CodeAnalysis.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public sealed class TypedConstant : ValueType, 
	IEquatable

The TypedConstant type exposes the following members.

Properties
  NameDescription
Public propertyIsNull
True if the constant represents a null reference.
Public propertyKind
The kind of the constant.
Public propertyType
Returns the ITypeSymbol of the constant, or null if the type can't be determined (error).
Public propertyValue
The value for a non-array constant.
Public propertyValues
The value for an TypedConstant array.
Top
Methods
Extension Methods
  NameDescription
Public Extension MethodToCSharpString
Returns the System.String that represents the current TypedConstant.
(Defined by TypedConstantExtensions.)
Public Extension MethodToVisualBasicString
Returns the System.String that represents the current TypedConstant.
(Defined by TypedConstantExtensions.)
Top
See Also