共用方式為


SyntaxFactory.Literal 方法

定義

多載

Literal(String, UInt64)

從文字建立具有 NumericLiteralToken 種類和對應 8 位元組無符號整數值的標記。

Literal(SyntaxTriviaList, String, Char, SyntaxTriviaList)

從文字和對應的字元值建立具有 CharacterLiteralToken 種類的令牌。

Literal(String, String)

從文字和對應的字串值建立具有 Kind StringLiteralToken 的令牌。

Literal(String, UInt32)

從文字建立類型為 NumericLiteralToken 的令牌,以及對應的 4 位元組無符號整數值。

Literal(SyntaxTriviaList, String, Decimal, SyntaxTriviaList)

從文字和對應的十進位值建立具有 NumericLiteralToken 種類的令牌。

Literal(String, Single)

從文字建立具有 NumericLiteralToken 種類和對應 4 位元組浮點值的令牌。

Literal(SyntaxTriviaList, String, Int32, SyntaxTriviaList)

從文字建立具有 NumericLiteralToken 種類和對應 4 位元組帶正負號整數值的標記。

Literal(SyntaxTriviaList, String, Int64, SyntaxTriviaList)

從文字建立類型為 NumericLiteralToken 的令牌,以及對應的 8 位元組帶正負號的整數值。

Literal(SyntaxTriviaList, String, Single, SyntaxTriviaList)

從文字建立具有 NumericLiteralToken 種類和對應 4 位元組浮點值的令牌。

Literal(SyntaxTriviaList, String, String, SyntaxTriviaList)

從文字和對應的字串值建立具有 Kind StringLiteralToken 的令牌。

Literal(SyntaxTriviaList, String, UInt64, SyntaxTriviaList)

從文字建立具有 NumericLiteralToken 種類和對應 8 位元組無符號整數值的標記。

Literal(SyntaxTriviaList, String, Double, SyntaxTriviaList)

從文字建立具有 NumericLiteralToken 種類和對應 8 位元組浮點值的令牌。

Literal(String, Int64)

從文字建立類型為 NumericLiteralToken 的令牌,以及對應的 8 位元組帶正負號的整數值。

Literal(SyntaxTriviaList, String, UInt32, SyntaxTriviaList)

從文字建立類型為 NumericLiteralToken 的令牌,以及對應的 4 位元組無符號整數值。

Literal(String, Double)

從文字建立具有 NumericLiteralToken 種類和對應 8 位元組浮點值的令牌。

Literal(String, Int32)

從文字建立具有 NumericLiteralToken 種類和對應 4 位元組帶正負號整數值的標記。

Literal(Decimal)

從十進位值建立具有 NumericLiteralToken 種類的令牌。

Literal(Double)

從8位元組浮點值建立具有Kind NumericLiteralToken的令牌。

Literal(Int32)

從 4 位元組帶正負號的整數值建立具有 NumericLiteralToken 類型的令牌。

Literal(Int64)

從8位元組帶正負號的整數值建立具有NumericLiteralToken種類的令牌。

Literal(Char)

從字元值建立具有 CharacterLiteralToken 種類的令牌。

Literal(String)

從字串值建立具有 StringLiteralToken 種類的令牌。

Literal(UInt32)

從 4 位元組無符號整數值建立具有 NumericLiteralToken 類型的令牌。

Literal(UInt64)

從8位元組無符號整數值建立具有 NumericLiteralToken 種類的令牌。

Literal(String, Char)

從文字和對應的字元值建立具有 CharacterLiteralToken 種類的令牌。

Literal(String, Decimal)

從文字和對應的十進位值建立具有 NumericLiteralToken 種類的令牌。

Literal(Single)

從 4 位元組浮點值建立具有 Kind NumericLiteralToken 的令牌。

Literal(String, UInt64)

Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs

從文字建立具有 NumericLiteralToken 種類和對應 8 位元組無符號整數值的標記。

public:
 static Microsoft::CodeAnalysis::SyntaxToken Literal(System::String ^ text, System::UInt64 value);
public static Microsoft.CodeAnalysis.SyntaxToken Literal (string text, ulong value);
static member Literal : string * uint64 -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Literal (text As String, value As ULong) As SyntaxToken

參數

text
String

常值的原始文字。

value
UInt64

要由傳回的標記表示的8位元組無符號整數值。

傳回

適用於

Literal(SyntaxTriviaList, String, Char, SyntaxTriviaList)

Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs

從文字和對應的字元值建立具有 CharacterLiteralToken 種類的令牌。

public:
 static Microsoft::CodeAnalysis::SyntaxToken Literal(Microsoft::CodeAnalysis::SyntaxTriviaList leading, System::String ^ text, char value, Microsoft::CodeAnalysis::SyntaxTriviaList trailing);
public static Microsoft.CodeAnalysis.SyntaxToken Literal (Microsoft.CodeAnalysis.SyntaxTriviaList leading, string text, char value, Microsoft.CodeAnalysis.SyntaxTriviaList trailing);
static member Literal : Microsoft.CodeAnalysis.SyntaxTriviaList * string * char * Microsoft.CodeAnalysis.SyntaxTriviaList -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Literal (leading As SyntaxTriviaList, text As String, value As Char, trailing As SyntaxTriviaList) As SyntaxToken

參數

leading
SyntaxTriviaList

緊接在令牌前面的 Trivia 清單。

text
String

常值的原始文字,包括引號和逸出序列。

value
Char

要由傳回令牌表示的字元值。

trailing
SyntaxTriviaList

緊接在令牌後面的 Trivia 清單。

傳回

適用於

Literal(String, String)

Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs

從文字和對應的字串值建立具有 Kind StringLiteralToken 的令牌。

public:
 static Microsoft::CodeAnalysis::SyntaxToken Literal(System::String ^ text, System::String ^ value);
public static Microsoft.CodeAnalysis.SyntaxToken Literal (string text, string value);
static member Literal : string * string -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Literal (text As String, value As String) As SyntaxToken

參數

text
String

常值的原始文字,包括引號和逸出序列。

value
String

要由傳回標記表示的字串值。

傳回

適用於

Literal(String, UInt32)

Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs

從文字建立類型為 NumericLiteralToken 的令牌,以及對應的 4 位元組無符號整數值。

public:
 static Microsoft::CodeAnalysis::SyntaxToken Literal(System::String ^ text, System::UInt32 value);
public static Microsoft.CodeAnalysis.SyntaxToken Literal (string text, uint value);
static member Literal : string * uint32 -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Literal (text As String, value As UInteger) As SyntaxToken

參數

text
String

常值的原始文字。

value
UInt32

要由傳回的標記表示的 4 位元組無符號整數值。

傳回

適用於

Literal(SyntaxTriviaList, String, Decimal, SyntaxTriviaList)

Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs

從文字和對應的十進位值建立具有 NumericLiteralToken 種類的令牌。

public:
 static Microsoft::CodeAnalysis::SyntaxToken Literal(Microsoft::CodeAnalysis::SyntaxTriviaList leading, System::String ^ text, System::Decimal value, Microsoft::CodeAnalysis::SyntaxTriviaList trailing);
public static Microsoft.CodeAnalysis.SyntaxToken Literal (Microsoft.CodeAnalysis.SyntaxTriviaList leading, string text, decimal value, Microsoft.CodeAnalysis.SyntaxTriviaList trailing);
static member Literal : Microsoft.CodeAnalysis.SyntaxTriviaList * string * decimal * Microsoft.CodeAnalysis.SyntaxTriviaList -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Literal (leading As SyntaxTriviaList, text As String, value As Decimal, trailing As SyntaxTriviaList) As SyntaxToken

參數

leading
SyntaxTriviaList

緊接在令牌前面的 Trivia 清單。

text
String

常值的原始文字。

value
Decimal

要由傳回令牌表示的十進位值。

trailing
SyntaxTriviaList

緊接在令牌後面的 Trivia 清單。

傳回

適用於

Literal(String, Single)

Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs

從文字建立具有 NumericLiteralToken 種類和對應 4 位元組浮點值的令牌。

public:
 static Microsoft::CodeAnalysis::SyntaxToken Literal(System::String ^ text, float value);
public static Microsoft.CodeAnalysis.SyntaxToken Literal (string text, float value);
static member Literal : string * single -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Literal (text As String, value As Single) As SyntaxToken

參數

text
String

常值的原始文字。

value
Single

要由傳回的令牌表示的 4 位元組浮點值。

傳回

適用於

Literal(SyntaxTriviaList, String, Int32, SyntaxTriviaList)

Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs

從文字建立具有 NumericLiteralToken 種類和對應 4 位元組帶正負號整數值的標記。

public:
 static Microsoft::CodeAnalysis::SyntaxToken Literal(Microsoft::CodeAnalysis::SyntaxTriviaList leading, System::String ^ text, int value, Microsoft::CodeAnalysis::SyntaxTriviaList trailing);
public static Microsoft.CodeAnalysis.SyntaxToken Literal (Microsoft.CodeAnalysis.SyntaxTriviaList leading, string text, int value, Microsoft.CodeAnalysis.SyntaxTriviaList trailing);
static member Literal : Microsoft.CodeAnalysis.SyntaxTriviaList * string * int * Microsoft.CodeAnalysis.SyntaxTriviaList -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Literal (leading As SyntaxTriviaList, text As String, value As Integer, trailing As SyntaxTriviaList) As SyntaxToken

參數

leading
SyntaxTriviaList

緊接在令牌前面的 Trivia 清單。

text
String

常值的原始文字。

value
Int32

要由傳回的標記表示的 4 位元組帶正負號整數值。

trailing
SyntaxTriviaList

緊接在令牌後面的 Trivia 清單。

傳回

適用於

Literal(SyntaxTriviaList, String, Int64, SyntaxTriviaList)

Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs

從文字建立類型為 NumericLiteralToken 的令牌,以及對應的 8 位元組帶正負號的整數值。

public:
 static Microsoft::CodeAnalysis::SyntaxToken Literal(Microsoft::CodeAnalysis::SyntaxTriviaList leading, System::String ^ text, long value, Microsoft::CodeAnalysis::SyntaxTriviaList trailing);
public static Microsoft.CodeAnalysis.SyntaxToken Literal (Microsoft.CodeAnalysis.SyntaxTriviaList leading, string text, long value, Microsoft.CodeAnalysis.SyntaxTriviaList trailing);
static member Literal : Microsoft.CodeAnalysis.SyntaxTriviaList * string * int64 * Microsoft.CodeAnalysis.SyntaxTriviaList -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Literal (leading As SyntaxTriviaList, text As String, value As Long, trailing As SyntaxTriviaList) As SyntaxToken

參數

leading
SyntaxTriviaList

緊接在令牌前面的 Trivia 清單。

text
String

常值的原始文字。

value
Int64

要以傳回標記表示的8位元組帶正負號整數值。

trailing
SyntaxTriviaList

緊接在令牌後面的 Trivia 清單。

傳回

適用於

Literal(SyntaxTriviaList, String, Single, SyntaxTriviaList)

Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs

從文字建立具有 NumericLiteralToken 種類和對應 4 位元組浮點值的令牌。

public:
 static Microsoft::CodeAnalysis::SyntaxToken Literal(Microsoft::CodeAnalysis::SyntaxTriviaList leading, System::String ^ text, float value, Microsoft::CodeAnalysis::SyntaxTriviaList trailing);
public static Microsoft.CodeAnalysis.SyntaxToken Literal (Microsoft.CodeAnalysis.SyntaxTriviaList leading, string text, float value, Microsoft.CodeAnalysis.SyntaxTriviaList trailing);
static member Literal : Microsoft.CodeAnalysis.SyntaxTriviaList * string * single * Microsoft.CodeAnalysis.SyntaxTriviaList -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Literal (leading As SyntaxTriviaList, text As String, value As Single, trailing As SyntaxTriviaList) As SyntaxToken

參數

leading
SyntaxTriviaList

緊接在令牌前面的 Trivia 清單。

text
String

常值的原始文字。

value
Single

要由傳回的令牌表示的 4 位元組浮點值。

trailing
SyntaxTriviaList

緊接在令牌後面的 Trivia 清單。

傳回

適用於

Literal(SyntaxTriviaList, String, String, SyntaxTriviaList)

Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs

從文字和對應的字串值建立具有 Kind StringLiteralToken 的令牌。

public:
 static Microsoft::CodeAnalysis::SyntaxToken Literal(Microsoft::CodeAnalysis::SyntaxTriviaList leading, System::String ^ text, System::String ^ value, Microsoft::CodeAnalysis::SyntaxTriviaList trailing);
public static Microsoft.CodeAnalysis.SyntaxToken Literal (Microsoft.CodeAnalysis.SyntaxTriviaList leading, string text, string value, Microsoft.CodeAnalysis.SyntaxTriviaList trailing);
static member Literal : Microsoft.CodeAnalysis.SyntaxTriviaList * string * string * Microsoft.CodeAnalysis.SyntaxTriviaList -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Literal (leading As SyntaxTriviaList, text As String, value As String, trailing As SyntaxTriviaList) As SyntaxToken

參數

leading
SyntaxTriviaList

緊接在令牌前面的 Trivia 清單。

text
String

常值的原始文字,包括引號和逸出序列。

value
String

要由傳回標記表示的字串值。

trailing
SyntaxTriviaList

緊接在令牌後面的 Trivia 清單。

傳回

適用於

Literal(SyntaxTriviaList, String, UInt64, SyntaxTriviaList)

Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs

從文字建立具有 NumericLiteralToken 種類和對應 8 位元組不帶正負號整數值的標記。

public:
 static Microsoft::CodeAnalysis::SyntaxToken Literal(Microsoft::CodeAnalysis::SyntaxTriviaList leading, System::String ^ text, System::UInt64 value, Microsoft::CodeAnalysis::SyntaxTriviaList trailing);
public static Microsoft.CodeAnalysis.SyntaxToken Literal (Microsoft.CodeAnalysis.SyntaxTriviaList leading, string text, ulong value, Microsoft.CodeAnalysis.SyntaxTriviaList trailing);
static member Literal : Microsoft.CodeAnalysis.SyntaxTriviaList * string * uint64 * Microsoft.CodeAnalysis.SyntaxTriviaList -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Literal (leading As SyntaxTriviaList, text As String, value As ULong, trailing As SyntaxTriviaList) As SyntaxToken

參數

leading
SyntaxTriviaList

緊接在令牌前面的 Trivia 清單。

text
String

常值的原始文字。

value
UInt64

要由傳回的標記表示的8位元組無符號整數值。

trailing
SyntaxTriviaList

緊接在令牌後面的 Trivia 清單。

傳回

適用於

Literal(SyntaxTriviaList, String, Double, SyntaxTriviaList)

Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs

從文字建立具有 NumericLiteralToken 種類和對應 8 位元組浮點值的令牌。

public:
 static Microsoft::CodeAnalysis::SyntaxToken Literal(Microsoft::CodeAnalysis::SyntaxTriviaList leading, System::String ^ text, double value, Microsoft::CodeAnalysis::SyntaxTriviaList trailing);
public static Microsoft.CodeAnalysis.SyntaxToken Literal (Microsoft.CodeAnalysis.SyntaxTriviaList leading, string text, double value, Microsoft.CodeAnalysis.SyntaxTriviaList trailing);
static member Literal : Microsoft.CodeAnalysis.SyntaxTriviaList * string * double * Microsoft.CodeAnalysis.SyntaxTriviaList -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Literal (leading As SyntaxTriviaList, text As String, value As Double, trailing As SyntaxTriviaList) As SyntaxToken

參數

leading
SyntaxTriviaList

令牌前面緊接的 Trivia 清單。

text
String

常值的原始文字。

value
Double

要由傳回的令牌表示的8位元組浮點值。

trailing
SyntaxTriviaList

緊接在令牌後面的 Trivia 清單。

傳回

適用於

Literal(String, Int64)

Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs

從文字建立具有 NumericLiteralToken 種類和對應 8 位元組帶正負號整數值的令牌。

public:
 static Microsoft::CodeAnalysis::SyntaxToken Literal(System::String ^ text, long value);
public static Microsoft.CodeAnalysis.SyntaxToken Literal (string text, long value);
static member Literal : string * int64 -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Literal (text As String, value As Long) As SyntaxToken

參數

text
String

常值的原始文字。

value
Int64

要由傳回的令牌表示的8位元組帶正負號整數值。

傳回

適用於

Literal(SyntaxTriviaList, String, UInt32, SyntaxTriviaList)

Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs

從文字建立具有 NumericLiteralToken 類型的令牌,以及對應的 4 位元組不帶正負號整數值。

public:
 static Microsoft::CodeAnalysis::SyntaxToken Literal(Microsoft::CodeAnalysis::SyntaxTriviaList leading, System::String ^ text, System::UInt32 value, Microsoft::CodeAnalysis::SyntaxTriviaList trailing);
public static Microsoft.CodeAnalysis.SyntaxToken Literal (Microsoft.CodeAnalysis.SyntaxTriviaList leading, string text, uint value, Microsoft.CodeAnalysis.SyntaxTriviaList trailing);
static member Literal : Microsoft.CodeAnalysis.SyntaxTriviaList * string * uint32 * Microsoft.CodeAnalysis.SyntaxTriviaList -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Literal (leading As SyntaxTriviaList, text As String, value As UInteger, trailing As SyntaxTriviaList) As SyntaxToken

參數

leading
SyntaxTriviaList

令牌前面緊接的 Trivia 清單。

text
String

常值的原始文字。

value
UInt32

要由傳回的令牌表示的 4 位元組無符號整數值。

trailing
SyntaxTriviaList

緊接在令牌後面的 Trivia 清單。

傳回

適用於

Literal(String, Double)

Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs

從文字建立具有 NumericLiteralToken 種類和對應 8 位元組浮點值的令牌。

public:
 static Microsoft::CodeAnalysis::SyntaxToken Literal(System::String ^ text, double value);
public static Microsoft.CodeAnalysis.SyntaxToken Literal (string text, double value);
static member Literal : string * double -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Literal (text As String, value As Double) As SyntaxToken

參數

text
String

常值的原始文字。

value
Double

要由傳回的令牌表示的8位元組浮點值。

傳回

適用於

Literal(String, Int32)

Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs

從文字建立具有 NumericLiteralToken 種類和對應 4 位元組帶正負號整數值的令牌。

public:
 static Microsoft::CodeAnalysis::SyntaxToken Literal(System::String ^ text, int value);
public static Microsoft.CodeAnalysis.SyntaxToken Literal (string text, int value);
static member Literal : string * int -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Literal (text As String, value As Integer) As SyntaxToken

參數

text
String

常值的原始文字。

value
Int32

要由傳回的令牌表示的 4 位元組帶正負號整數值。

傳回

適用於

Literal(Decimal)

Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs

從十進位值建立具有 NumericLiteralToken 種類的令牌。

public:
 static Microsoft::CodeAnalysis::SyntaxToken Literal(System::Decimal value);
public static Microsoft.CodeAnalysis.SyntaxToken Literal (decimal value);
static member Literal : decimal -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Literal (value As Decimal) As SyntaxToken

參數

value
Decimal

要由傳回的令牌表示的十進位值。

傳回

適用於

Literal(Double)

Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs

從8位元組浮點值建立具有 NumericLiteralToken 種類的令牌。

public:
 static Microsoft::CodeAnalysis::SyntaxToken Literal(double value);
public static Microsoft.CodeAnalysis.SyntaxToken Literal (double value);
static member Literal : double -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Literal (value As Double) As SyntaxToken

參數

value
Double

要由傳回的令牌表示的8位元組浮點值。

傳回

適用於

Literal(Int32)

Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs

從 4 位元組帶正負號的整數值建立具有 NumericLiteralToken 類型的令牌。

public:
 static Microsoft::CodeAnalysis::SyntaxToken Literal(int value);
public static Microsoft.CodeAnalysis.SyntaxToken Literal (int value);
static member Literal : int -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Literal (value As Integer) As SyntaxToken

參數

value
Int32

要由傳回的令牌表示的 4 位元組帶正負號整數值。

傳回

適用於

Literal(Int64)

Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs

從 8 位元組帶正負號的整數值建立具有 NumericLiteralToken 類型的令牌。

public:
 static Microsoft::CodeAnalysis::SyntaxToken Literal(long value);
public static Microsoft.CodeAnalysis.SyntaxToken Literal (long value);
static member Literal : int64 -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Literal (value As Long) As SyntaxToken

參數

value
Int64

要由傳回的令牌表示的8位元組帶正負號整數值。

傳回

適用於

Literal(Char)

Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs

從字元值建立具有 CharacterLiteralToken 種類的令牌。

public:
 static Microsoft::CodeAnalysis::SyntaxToken Literal(char value);
public static Microsoft.CodeAnalysis.SyntaxToken Literal (char value);
static member Literal : char -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Literal (value As Char) As SyntaxToken

參數

value
Char

要由傳回的令牌表示的字元值。

傳回

適用於

Literal(String)

Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs

從字串值建立具有 StringLiteralToken 種類的令牌。

public:
 static Microsoft::CodeAnalysis::SyntaxToken Literal(System::String ^ value);
public static Microsoft.CodeAnalysis.SyntaxToken Literal (string value);
static member Literal : string -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Literal (value As String) As SyntaxToken

參數

value
String

要由傳回的令牌表示的字串值。

傳回

適用於

Literal(UInt32)

Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs

從 4 位元組無符號整數值建立具有 NumericLiteralToken 類型的令牌。

public:
 static Microsoft::CodeAnalysis::SyntaxToken Literal(System::UInt32 value);
public static Microsoft.CodeAnalysis.SyntaxToken Literal (uint value);
static member Literal : uint32 -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Literal (value As UInteger) As SyntaxToken

參數

value
UInt32

要由傳回的令牌表示的 4 位元組無符號整數值。

傳回

適用於

Literal(UInt64)

Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs

從8位元組無符號整數值建立具有 NumericLiteralToken 類型的令牌。

public:
 static Microsoft::CodeAnalysis::SyntaxToken Literal(System::UInt64 value);
public static Microsoft.CodeAnalysis.SyntaxToken Literal (ulong value);
static member Literal : uint64 -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Literal (value As ULong) As SyntaxToken

參數

value
UInt64

要由傳回的令牌表示的8位元組無符號整數值。

傳回

適用於

Literal(String, Char)

Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs

從文字和對應的字元值,建立具有 Kind CharacterLiteralToken 的令牌。

public:
 static Microsoft::CodeAnalysis::SyntaxToken Literal(System::String ^ text, char value);
public static Microsoft.CodeAnalysis.SyntaxToken Literal (string text, char value);
static member Literal : string * char -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Literal (text As String, value As Char) As SyntaxToken

參數

text
String

常值的原始文字,包括引號和逸出序列。

value
Char

要由傳回的令牌表示的字元值。

傳回

適用於

Literal(String, Decimal)

Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs

從文字和對應的十進位值,建立具有 NumericLiteralToken 種類的令牌。

public:
 static Microsoft::CodeAnalysis::SyntaxToken Literal(System::String ^ text, System::Decimal value);
public static Microsoft.CodeAnalysis.SyntaxToken Literal (string text, decimal value);
static member Literal : string * decimal -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Literal (text As String, value As Decimal) As SyntaxToken

參數

text
String

常值的原始文字。

value
Decimal

要由傳回的令牌表示的十進位值。

傳回

適用於

Literal(Single)

Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs

從 4 位元組浮點值建立具有 NumericLiteralToken 類型的令牌。

public:
 static Microsoft::CodeAnalysis::SyntaxToken Literal(float value);
public static Microsoft.CodeAnalysis.SyntaxToken Literal (float value);
static member Literal : single -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Literal (value As Single) As SyntaxToken

參數

value
Single

要由傳回的令牌表示的 4 位元組浮點值。

傳回

適用於