共用方式為


ICSharpHelper.Literal 方法

定義

多載

Literal(BigInteger)

產生 BigInteger 常值。

Literal(Type, Nullable<Boolean>)

Type產生常值。

Literal(Enum, Boolean)

產生列舉常值。

Literal(IReadOnlyList<Object>, Boolean)

產生物件陣列常值。

Literal(UInt64)

產生 ulong 常值。

Literal(UInt32)

產生 uint 常值。

Literal(UInt16)

產生 ushort 常值。

Literal(TimeSpan)

產生 TimeSpan 常值。

Literal(TimeOnly)

產生 TimeOnly 常值。

Literal(String)

產生字串常值。

Literal(Single)

產生浮點常值。

Literal(SByte)

產生位元組常值。

Literal(Object[,])

產生多維度陣列常值。

Literal(Int64)

產生長常值。

Literal(Guid)

產生 Guid 常值。

Literal(Int16)

產生簡短常值。

Literal(Boolean)

產生 bool 常值。

Literal(Int32)

產生 int 常值。

Literal(Byte[])

產生位元組陣列常值。

Literal(Char)

產生 char 常值。

Literal(IReadOnlyList<Object>)

產生物件陣列常值。

Literal(DateOnly)

產生 DateOnly 常值。

Literal(Byte)

產生位元組常值。

Literal(DateTimeOffset)

產生 DateTimeOffset 常值。

Literal(Decimal)

產生十進位常值。

Literal(Double)

產生雙常值。

Literal(Enum)

產生列舉常值。

Literal(DateTime)

產生 DateTime 常值。

Literal<T>(IReadOnlyList<T>)

產生陣列常值。

Literal<T>(Nullable<T>)

產生可為 Null 的常值。

Literal<T>(List<T>, Boolean)

產生清單常值。

Literal<T>(T[], Boolean)

產生物件陣列常值。

Literal<TKey,TValue>(Dictionary<TKey,TValue>, Boolean)

產生字典常值。

Literal(BigInteger)

產生 BigInteger 常值。

public string Literal (System.Numerics.BigInteger value);
abstract member Literal : System.Numerics.BigInteger -> string
Public Function Literal (value As BigInteger) As String

參數

value
BigInteger

數值。

傳回

常值。

適用於

Literal(Type, Nullable<Boolean>)

Type產生常值。

public string Literal (Type value, bool? fullName = default);
abstract member Literal : Type * Nullable<bool> -> string
Public Function Literal (value As Type, Optional fullName As Nullable(Of Boolean) = Nothing) As String

參數

value
Type

數值。

fullName
Nullable<Boolean>

類型是否應為命名空間限定。

傳回

常值。

適用於

Literal(Enum, Boolean)

產生列舉常值。

public string Literal (Enum value, bool fullName = false);
abstract member Literal : Enum * bool -> string
Public Function Literal (value As Enum, Optional fullName As Boolean = false) As String

參數

value
Enum

數值。

fullName
Boolean

類型是否應為命名空間限定。

傳回

常值。

適用於

Literal(IReadOnlyList<Object>, Boolean)

產生物件陣列常值。

public string Literal (System.Collections.Generic.IReadOnlyList<object> values, bool vertical);
abstract member Literal : System.Collections.Generic.IReadOnlyList<obj> * bool -> string
Public Function Literal (values As IReadOnlyList(Of Object), vertical As Boolean) As String

參數

values
IReadOnlyList<Object>

物件陣列。

vertical
Boolean

值,指出是否垂直配置常值。

傳回

常值。

適用於

Literal(UInt64)

產生 ulong 常值。

public string Literal (ulong value);
abstract member Literal : uint64 -> string
Public Function Literal (value As ULong) As String

參數

value
UInt64

數值。

傳回

常值。

適用於

Literal(UInt32)

產生 uint 常值。

public string Literal (uint value);
abstract member Literal : uint32 -> string
Public Function Literal (value As UInteger) As String

參數

value
UInt32

數值。

傳回

常值。

適用於

Literal(UInt16)

產生 ushort 常值。

public string Literal (ushort value);
abstract member Literal : uint16 -> string
Public Function Literal (value As UShort) As String

參數

value
UInt16

數值。

傳回

常值。

適用於

Literal(TimeSpan)

產生 TimeSpan 常值。

public string Literal (TimeSpan value);
abstract member Literal : TimeSpan -> string
Public Function Literal (value As TimeSpan) As String

參數

value
TimeSpan

數值。

傳回

常值。

適用於

Literal(TimeOnly)

產生 TimeOnly 常值。

public string Literal (TimeOnly value);
abstract member Literal : TimeOnly -> string
Public Function Literal (value As TimeOnly) As String

參數

value
TimeOnly

數值。

傳回

常值。

適用於

Literal(String)

產生字串常值。

public string Literal (string value);
public string Literal (string? value);
abstract member Literal : string -> string
Public Function Literal (value As String) As String

參數

value
String

數值。

傳回

常值。

適用於

Literal(Single)

產生 float 常值。

public string Literal (float value);
abstract member Literal : single -> string
Public Function Literal (value As Single) As String

參數

value
Single

數值。

傳回

常值。

適用於

Literal(SByte)

產生 sbyte 常值。

public string Literal (sbyte value);
abstract member Literal : sbyte -> string
Public Function Literal (value As SByte) As String

參數

value
SByte

數值。

傳回

常值。

適用於

Literal(Object[,])

產生多維度陣列常值。

public string Literal (object[,] values);
public string Literal (object?[,] values);
abstract member Literal : obj[,] -> string
Public Function Literal (values As Object(,)) As String

參數

values
Object[,]

多維度陣列。

傳回

常值。

適用於

Literal(Int64)

產生長常值。

public string Literal (long value);
abstract member Literal : int64 -> string
Public Function Literal (value As Long) As String

參數

value
Int64

數值。

傳回

常值。

適用於

Literal(Guid)

產生 Guid 常值。

public string Literal (Guid value);
abstract member Literal : Guid -> string
Public Function Literal (value As Guid) As String

參數

value
Guid

數值。

傳回

常值。

適用於

Literal(Int16)

產生簡短常值。

public string Literal (short value);
abstract member Literal : int16 -> string
Public Function Literal (value As Short) As String

參數

value
Int16

數值。

傳回

常值。

適用於

Literal(Boolean)

產生 bool 常值。

public string Literal (bool value);
abstract member Literal : bool -> string
Public Function Literal (value As Boolean) As String

參數

value
Boolean

數值。

傳回

常值。

適用於

Literal(Int32)

產生 int 常值。

public string Literal (int value);
abstract member Literal : int -> string
Public Function Literal (value As Integer) As String

參數

value
Int32

數值。

傳回

常值。

適用於

Literal(Byte[])

產生位元組陣列常值。

public string Literal (byte[] values);
abstract member Literal : byte[] -> string
Public Function Literal (values As Byte()) As String

參數

values
Byte[]

位元組陣列。

傳回

常值。

適用於

Literal(Char)

產生 char 常值。

public string Literal (char value);
abstract member Literal : char -> string
Public Function Literal (value As Char) As String

參數

value
Char

數值。

傳回

常值。

適用於

Literal(IReadOnlyList<Object>)

產生物件陣列常值。

public string Literal (System.Collections.Generic.IReadOnlyList<object> values);
abstract member Literal : System.Collections.Generic.IReadOnlyList<obj> -> string
Public Function Literal (values As IReadOnlyList(Of Object)) As String

參數

values
IReadOnlyList<Object>

物件陣列。

傳回

常值。

適用於

Literal(DateOnly)

產生 DateOnly 常值。

public string Literal (DateOnly value);
abstract member Literal : DateOnly -> string
Public Function Literal (value As DateOnly) As String

參數

value
DateOnly

數值。

傳回

常值。

適用於

Literal(Byte)

產生位元組常值。

public string Literal (byte value);
abstract member Literal : byte -> string
Public Function Literal (value As Byte) As String

參數

value
Byte

數值。

傳回

常值。

適用於

Literal(DateTimeOffset)

產生 DateTimeOffset 常值。

public string Literal (DateTimeOffset value);
abstract member Literal : DateTimeOffset -> string
Public Function Literal (value As DateTimeOffset) As String

參數

value
DateTimeOffset

數值。

傳回

常值。

適用於

Literal(Decimal)

產生十進位常值。

public string Literal (decimal value);
abstract member Literal : decimal -> string
Public Function Literal (value As Decimal) As String

參數

value
Decimal

數值。

傳回

常值。

適用於

Literal(Double)

產生雙常值。

public string Literal (double value);
abstract member Literal : double -> string
Public Function Literal (value As Double) As String

參數

value
Double

數值。

傳回

常值。

適用於

Literal(Enum)

產生列舉常值。

public string Literal (Enum value);
abstract member Literal : Enum -> string
Public Function Literal (value As Enum) As String

參數

value
Enum

數值。

傳回

常值。

適用於

Literal(DateTime)

產生 DateTime 常值。

public string Literal (DateTime value);
abstract member Literal : DateTime -> string
Public Function Literal (value As DateTime) As String

參數

value
DateTime

數值。

傳回

常值。

適用於

Literal<T>(IReadOnlyList<T>)

產生陣列常值。

public string Literal<T> (System.Collections.Generic.IReadOnlyList<T> values);
abstract member Literal : System.Collections.Generic.IReadOnlyList<'T> -> string
Public Function Literal(Of T) (values As IReadOnlyList(Of T)) As String

類型參數

T

陣列的專案類型。

參數

values
IReadOnlyList<T>

陣列。

傳回

常值。

適用於

Literal<T>(Nullable<T>)

產生可為 Null 的常值。

public string Literal<T> (T? value) where T : struct;
abstract member Literal : Nullable<'T (requires 'T : struct)> -> string (requires 'T : struct)
Public Function Literal(Of T As Structure) (value As Nullable(Of T)) As String

類型參數

T

可為 Null 型別的基礎型別。

參數

value
Nullable<T>

可為 Null 的值。

傳回

常值。

適用於

Literal<T>(List<T>, Boolean)

產生清單常值。

public string Literal<T> (System.Collections.Generic.List<T> values, bool vertical = false);
abstract member Literal : System.Collections.Generic.List<'T> * bool -> string
Public Function Literal(Of T) (values As List(Of T), Optional vertical As Boolean = false) As String

類型參數

T

參數

values
List<T>

清單。

vertical
Boolean

值,指出是否垂直配置常值。

傳回

常值。

適用於

Literal<T>(T[], Boolean)

產生物件陣列常值。

public string Literal<T> (T[] values, bool vertical = false);
abstract member Literal : 'T[] * bool -> string
Public Function Literal(Of T) (values As T(), Optional vertical As Boolean = false) As String

類型參數

T

參數

values
T[]

物件陣列。

vertical
Boolean

值,指出是否垂直配置常值。

傳回

常值。

適用於

Literal<TKey,TValue>(Dictionary<TKey,TValue>, Boolean)

產生字典常值。

public string Literal<TKey,TValue> (System.Collections.Generic.Dictionary<TKey,TValue> values, bool vertical = false);
abstract member Literal : System.Collections.Generic.Dictionary<'Key, 'Value> * bool -> string
Public Function Literal(Of TKey, TValue) (values As Dictionary(Of TKey, TValue), Optional vertical As Boolean = false) As String

類型參數

TKey
TValue

參數

values
Dictionary<TKey,TValue>

字典。

vertical
Boolean

值,指出是否垂直配置常值。

傳回

常值。

適用於