다음을 통해 공유


TypedConstantExtensions.ToCSharpString(TypedConstant) Method

Definition

Returns the System.String that represents the current TypedConstant.

public:
[System::Runtime::CompilerServices::Extension]
 static System::String ^ ToCSharpString(Microsoft::CodeAnalysis::TypedConstant constant);
public static string ToCSharpString (this Microsoft.CodeAnalysis.TypedConstant constant);
static member ToCSharpString : Microsoft.CodeAnalysis.TypedConstant -> string
<Extension()>
Public Function ToCSharpString (constant As TypedConstant) As String

Parameters

constant
TypedConstant

Returns

A System.String that represents the current TypedConstant.

Applies to