Compartir a través de


SyntaxFactory.Literal Método

Definición

Sobrecargas

Literal(String, UInt64)

Crea un token con el tipo NumericLiteralToken a partir del texto y el valor entero de 8 bytes sin signo correspondiente.

Literal(SyntaxTriviaList, String, Char, SyntaxTriviaList)

Crea un token con el tipo CharacterLiteralToken a partir del texto y el valor de carácter correspondiente.

Literal(String, String)

Crea un token con el tipo StringLiteralToken a partir del texto y el valor de cadena correspondiente.

Literal(String, UInt32)

Crea un token con el tipo NumericLiteralToken a partir del texto y el valor entero de 4 bytes sin signo correspondiente.

Literal(SyntaxTriviaList, String, Decimal, SyntaxTriviaList)

Crea un token con el tipo NumericLiteralToken a partir del texto y el valor decimal correspondiente.

Literal(String, Single)

Crea un token con el tipo NumericLiteralToken a partir del texto y el valor de punto flotante de 4 bytes correspondiente.

Literal(SyntaxTriviaList, String, Int32, SyntaxTriviaList)

Crea un token con el tipo NumericLiteralToken a partir del texto y el valor entero con signo de 4 bytes correspondiente.

Literal(SyntaxTriviaList, String, Int64, SyntaxTriviaList)

Crea un token con el tipo NumericLiteralToken a partir del texto y el valor entero con signo de 8 bytes correspondiente.

Literal(SyntaxTriviaList, String, Single, SyntaxTriviaList)

Crea un token con el tipo NumericLiteralToken a partir del texto y el valor de punto flotante de 4 bytes correspondiente.

Literal(SyntaxTriviaList, String, String, SyntaxTriviaList)

Crea un token con el tipo StringLiteralToken a partir del texto y el valor de cadena correspondiente.

Literal(SyntaxTriviaList, String, UInt64, SyntaxTriviaList)

Crea un token con el tipo NumericLiteralToken a partir del texto y el valor entero de 8 bytes sin signo correspondiente.

Literal(SyntaxTriviaList, String, Double, SyntaxTriviaList)

Crea un token con el tipo NumericLiteralToken a partir del texto y el valor de punto flotante de 8 bytes correspondiente.

Literal(String, Int64)

Crea un token con el tipo NumericLiteralToken a partir del texto y el valor entero con signo de 8 bytes correspondiente.

Literal(SyntaxTriviaList, String, UInt32, SyntaxTriviaList)

Crea un token con el tipo NumericLiteralToken a partir del texto y el valor entero de 4 bytes sin signo correspondiente.

Literal(String, Double)

Crea un token con el tipo NumericLiteralToken a partir del texto y el valor de punto flotante de 8 bytes correspondiente.

Literal(String, Int32)

Crea un token con el tipo NumericLiteralToken a partir del texto y el valor entero con signo de 4 bytes correspondiente.

Literal(Decimal)

Crea un token con el tipo NumericLiteralToken a partir de un valor decimal.

Literal(Double)

Crea un token con el tipo NumericLiteralToken a partir de un valor de punto flotante de 8 bytes.

Literal(Int32)

Crea un token con el tipo NumericLiteralToken a partir de un valor entero con signo de 4 bytes.

Literal(Int64)

Crea un token con el tipo NumericLiteralToken a partir de un valor entero con signo de 8 bytes.

Literal(Char)

Crea un token con el tipo CharacterLiteralToken a partir de un valor de carácter.

Literal(String)

Crea un token con el tipo StringLiteralToken a partir de un valor de cadena.

Literal(UInt32)

Crea un token con el tipo NumericLiteralToken a partir de un valor entero de 4 bytes sin signo.

Literal(UInt64)

Crea un token con el tipo NumericLiteralToken a partir de un valor entero de 8 bytes sin signo.

Literal(String, Char)

Crea un token con el tipo CharacterLiteralToken a partir del texto y el valor de carácter correspondiente.

Literal(String, Decimal)

Crea un token con el tipo NumericLiteralToken a partir del texto y el valor decimal correspondiente.

Literal(Single)

Crea un token con el tipo NumericLiteralToken a partir de un valor de punto flotante de 4 bytes.

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

Crea un token con el tipo NumericLiteralToken a partir del texto y el valor entero de 8 bytes sin signo correspondiente.

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

Parámetros

text
String

Texto sin formato del literal.

value
UInt64

Valor entero sin signo de 8 bytes que se va a representar mediante el token devuelto.

Devoluciones

Se aplica a

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

Crea un token con el tipo CharacterLiteralToken a partir del texto y el valor de carácter correspondiente.

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

Parámetros

leading
SyntaxTriviaList

Una lista de trivia inmediatamente anterior al token.

text
String

Texto sin formato del literal, incluidas comillas y secuencias de escape.

value
Char

Valor de carácter que se va a representar mediante el token devuelto.

trailing
SyntaxTriviaList

Una lista de trivia inmediatamente después del token.

Devoluciones

Se aplica a

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

Crea un token con el tipo StringLiteralToken a partir del texto y el valor de cadena correspondiente.

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

Parámetros

text
String

Texto sin formato del literal, incluidas comillas y secuencias de escape.

value
String

Valor de cadena que se va a representar mediante el token devuelto.

Devoluciones

Se aplica a

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

Crea un token con el tipo NumericLiteralToken a partir del texto y el valor entero de 4 bytes sin signo correspondiente.

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

Parámetros

text
String

Texto sin formato del literal.

value
UInt32

Valor entero de 4 bytes sin signo que se va a representar mediante el token devuelto.

Devoluciones

Se aplica a

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

Crea un token con el tipo NumericLiteralToken a partir del texto y el valor decimal correspondiente.

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

Parámetros

leading
SyntaxTriviaList

Una lista de trivia inmediatamente anterior al token.

text
String

Texto sin formato del literal.

value
Decimal

Valor decimal que se va a representar mediante el token devuelto.

trailing
SyntaxTriviaList

Una lista de trivia inmediatamente después del token.

Devoluciones

Se aplica a

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

Crea un token con el tipo NumericLiteralToken a partir del texto y el valor de punto flotante de 4 bytes correspondiente.

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

Parámetros

text
String

Texto sin formato del literal.

value
Single

Valor de punto flotante de 4 bytes que se va a representar mediante el token devuelto.

Devoluciones

Se aplica a

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

Crea un token con el tipo NumericLiteralToken a partir del texto y el valor entero con signo de 4 bytes correspondiente.

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

Parámetros

leading
SyntaxTriviaList

Una lista de trivia inmediatamente anterior al token.

text
String

Texto sin formato del literal.

value
Int32

Valor entero con signo de 4 bytes que se va a representar mediante el token devuelto.

trailing
SyntaxTriviaList

Una lista de trivia inmediatamente después del token.

Devoluciones

Se aplica a

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

Crea un token con el tipo NumericLiteralToken a partir del texto y el valor entero con signo de 8 bytes correspondiente.

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

Parámetros

leading
SyntaxTriviaList

Una lista de trivia inmediatamente anterior al token.

text
String

Texto sin formato del literal.

value
Int64

Valor entero con signo de 8 bytes que se va a representar mediante el token devuelto.

trailing
SyntaxTriviaList

Una lista de trivia inmediatamente después del token.

Devoluciones

Se aplica a

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

Crea un token con el tipo NumericLiteralToken a partir del texto y el valor de punto flotante de 4 bytes correspondiente.

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

Parámetros

leading
SyntaxTriviaList

Una lista de trivia inmediatamente anterior al token.

text
String

Texto sin formato del literal.

value
Single

Valor de punto flotante de 4 bytes que se va a representar mediante el token devuelto.

trailing
SyntaxTriviaList

Una lista de trivia inmediatamente después del token.

Devoluciones

Se aplica a

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

Crea un token con el tipo StringLiteralToken a partir del texto y el valor de cadena correspondiente.

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

Parámetros

leading
SyntaxTriviaList

Una lista de trivia inmediatamente anterior al token.

text
String

Texto sin formato del literal, incluidas comillas y secuencias de escape.

value
String

Valor de cadena que se va a representar mediante el token devuelto.

trailing
SyntaxTriviaList

Una lista de trivia inmediatamente después del token.

Devoluciones

Se aplica a

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

Crea un token con el tipo NumericLiteralToken a partir del texto y el valor entero de 8 bytes sin signo correspondiente.

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

Parámetros

leading
SyntaxTriviaList

Una lista de trivia inmediatamente anterior al token.

text
String

Texto sin formato del literal.

value
UInt64

Valor entero sin signo de 8 bytes que se va a representar mediante el token devuelto.

trailing
SyntaxTriviaList

Una lista de trivia inmediatamente después del token.

Devoluciones

Se aplica a

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

Crea un token con el tipo NumericLiteralToken a partir del texto y el valor de punto flotante de 8 bytes correspondiente.

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

Parámetros

leading
SyntaxTriviaList

Una lista de trivia inmediatamente anterior al token.

text
String

Texto sin formato del literal.

value
Double

Valor de punto flotante de 8 bytes que se va a representar mediante el token devuelto.

trailing
SyntaxTriviaList

Una lista de trivia inmediatamente después del token.

Devoluciones

Se aplica a

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

Crea un token con el tipo NumericLiteralToken a partir del texto y el valor entero con signo de 8 bytes correspondiente.

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

Parámetros

text
String

Texto sin formato del literal.

value
Int64

Valor entero con signo de 8 bytes que se va a representar mediante el token devuelto.

Devoluciones

Se aplica a

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

Crea un token con el tipo NumericLiteralToken a partir del texto y el valor entero de 4 bytes sin signo correspondiente.

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

Parámetros

leading
SyntaxTriviaList

Una lista de trivia inmediatamente anterior al token.

text
String

Texto sin formato del literal.

value
UInt32

Valor entero de 4 bytes sin signo que se va a representar mediante el token devuelto.

trailing
SyntaxTriviaList

Una lista de trivia inmediatamente después del token.

Devoluciones

Se aplica a

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

Crea un token con el tipo NumericLiteralToken a partir del texto y el valor de punto flotante de 8 bytes correspondiente.

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

Parámetros

text
String

Texto sin formato del literal.

value
Double

Valor de punto flotante de 8 bytes que se va a representar mediante el token devuelto.

Devoluciones

Se aplica a

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

Crea un token con el tipo NumericLiteralToken a partir del texto y el valor entero con signo de 4 bytes correspondiente.

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

Parámetros

text
String

Texto sin formato del literal.

value
Int32

Valor entero con signo de 4 bytes que se va a representar mediante el token devuelto.

Devoluciones

Se aplica a

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

Crea un token con el tipo NumericLiteralToken a partir de un valor decimal.

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

Parámetros

value
Decimal

Valor decimal que se va a representar mediante el token devuelto.

Devoluciones

Se aplica a

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

Crea un token con el tipo NumericLiteralToken a partir de un valor de punto flotante de 8 bytes.

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

Parámetros

value
Double

Valor de punto flotante de 8 bytes que se va a representar mediante el token devuelto.

Devoluciones

Se aplica a

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

Crea un token con el tipo NumericLiteralToken a partir de un valor entero con signo de 4 bytes.

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

Parámetros

value
Int32

Valor entero con signo de 4 bytes que se va a representar mediante el token devuelto.

Devoluciones

Se aplica a

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

Crea un token con el tipo NumericLiteralToken a partir de un valor entero con signo de 8 bytes.

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

Parámetros

value
Int64

Valor entero con signo de 8 bytes que se va a representar mediante el token devuelto.

Devoluciones

Se aplica a

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

Crea un token con el tipo CharacterLiteralToken a partir de un valor de carácter.

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

Parámetros

value
Char

Valor de carácter que se va a representar mediante el token devuelto.

Devoluciones

Se aplica a

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

Crea un token con el tipo StringLiteralToken a partir de un valor de cadena.

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

Parámetros

value
String

Valor de cadena que se va a representar mediante el token devuelto.

Devoluciones

Se aplica a

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

Crea un token con el tipo NumericLiteralToken a partir de un valor entero de 4 bytes sin signo.

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

Parámetros

value
UInt32

Valor entero de 4 bytes sin signo que se va a representar mediante el token devuelto.

Devoluciones

Se aplica a

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

Crea un token con el tipo NumericLiteralToken a partir de un valor entero de 8 bytes sin signo.

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

Parámetros

value
UInt64

Valor entero sin signo de 8 bytes que se va a representar mediante el token devuelto.

Devoluciones

Se aplica a

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

Crea un token con el tipo CharacterLiteralToken a partir del texto y el valor de carácter correspondiente.

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

Parámetros

text
String

Texto sin formato del literal, incluidas comillas y secuencias de escape.

value
Char

Valor de carácter que se va a representar mediante el token devuelto.

Devoluciones

Se aplica a

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

Crea un token con el tipo NumericLiteralToken a partir del texto y el valor decimal correspondiente.

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

Parámetros

text
String

Texto sin formato del literal.

value
Decimal

Valor decimal que se va a representar mediante el token devuelto.

Devoluciones

Se aplica a

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

Crea un token con el tipo NumericLiteralToken a partir de un valor de punto flotante de 4 bytes.

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

Parámetros

value
Single

Valor de punto flotante de 4 bytes que se va a representar mediante el token devuelto.

Devoluciones

Se aplica a