PrimitiveSerializationTypeCode 枚举
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指定常数,用于定义类型代码,这些类型用于编码 CustomAttribute 值 Blob 中基元值的类型。
public enum class PrimitiveSerializationTypeCode
C#
public enum PrimitiveSerializationTypeCode
type PrimitiveSerializationTypeCode =
Public Enum PrimitiveSerializationTypeCode
- 继承
名称 | 值 | 说明 |
---|---|---|
Boolean | 2 | Boolean 类型。 |
Byte | 5 | 1 字节无符号整数类型。 |
Char | 3 | Char 类型。 |
Double | 13 | 8 字节浮点类型。 |
Int16 | 6 | 2 字节有符号整数类型。 |
Int32 | 8 | 4 字节有符号整数类型。 |
Int64 | 10 | 8 字节有符号整数类型。 |
SByte | 4 | 1 字节有符号整数类型。 |
Single | 12 | 4 字节浮点类型。 |
String | 14 | String 类型。 |
UInt16 | 7 | 2 字节无符号整数类型。 |
UInt32 | 9 | 4 字节无符号整数类型。 |
UInt64 | 11 | 8 字节无符号整数类型。 |
产品 | 版本 |
---|---|
.NET | Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 |