Compartilhar via


SymbolDisplay.FormatLiteral Method

Definition

Overloads

FormatLiteral(Char, Boolean)

Returns a C# character literal with the given value.

FormatLiteral(String, Boolean)

Returns a C# string literal with the given value.

FormatLiteral(Char, Boolean)

Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs

Returns a C# character literal with the given value.

public:
 static System::String ^ FormatLiteral(char c, bool quote);
public static string FormatLiteral (char c, bool quote);
static member FormatLiteral : char * bool -> string
Public Shared Function FormatLiteral (c As Char, quote As Boolean) As String

Parameters

c
Char

The value that the resulting character literal should have.

quote
Boolean

True to put (single) quotes around the character literal.

Returns

A character literal with the given value.

Remarks

Escapes non-printable characters.

Applies to

FormatLiteral(String, Boolean)

Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs
Source:
SymbolDisplay.cs

Returns a C# string literal with the given value.

public:
 static System::String ^ FormatLiteral(System::String ^ value, bool quote);
public static string FormatLiteral (string value, bool quote);
static member FormatLiteral : string * bool -> string
Public Shared Function FormatLiteral (value As String, quote As Boolean) As String

Parameters

value
String

The value that the resulting string literal should have.

quote
Boolean

True to put (double) quotes around the string literal.

Returns

A string literal with the given value.

Remarks

Escapes non-printable characters.

Applies to