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.

适用于