PrimitiveSerializationTypeCode PrimitiveSerializationTypeCode PrimitiveSerializationTypeCode PrimitiveSerializationTypeCode Enum

定義

指定要在 CustomAttribute 值 Blob 中,定義用於編碼基本值類型的類型代碼。Specifies constants that define the type codes used to encode types of primitive values in a CustomAttribute value blob.

public enum class PrimitiveSerializationTypeCode
public enum PrimitiveSerializationTypeCode
type PrimitiveSerializationTypeCode = 
Public Enum PrimitiveSerializationTypeCode
繼承
PrimitiveSerializationTypeCodePrimitiveSerializationTypeCodePrimitiveSerializationTypeCodePrimitiveSerializationTypeCode

欄位

Boolean Boolean Boolean Boolean 2

Boolean 型別。A Boolean type.

Byte Byte Byte Byte 5

不帶正負號的 1 位元整數類型。An unsigned 1-byte integer type.

Char Char Char Char 3

Char 型別。A Char type.

Double Double Double Double 13

8 位元浮點數類型。An 8-byte floating point type.

Int16 Int16 Int16 Int16 6

帶正負號的 2 位元整數類型。A signed 2-byte integer type.

Int32 Int32 Int32 Int32 8

帶正負號的 4 位元整數類型。A signed 4-byte integer type.

Int64 Int64 Int64 Int64 10

帶正負號的 8 位元整數類型。A signed 8-byte integer type.

SByte SByte SByte SByte 4

帶正負號的 1 位元整數類型。A signed 1-byte integer type.

Single Single Single Single 12

4 位元浮點數類型。A 4-byte floating point type.

String String String String 14

String 型別。A String type.

UInt16 UInt16 UInt16 UInt16 7

不帶正負號的 2 位元整數類型。An unsigned 2-byte integer type.

UInt32 UInt32 UInt32 UInt32 9

不帶正負號的 4 位元整數類型。An unsigned 4-byte integer type.

UInt64 UInt64 UInt64 UInt64 11

不帶正負號的 8 位元整數類型。An unsigned 8-byte integer type.

適用於