PrimitiveTypeCode 枚举

定义

指定常数,用于定义元数据签名中找到的基元类型。

C#
public enum PrimitiveTypeCode
继承
PrimitiveTypeCode

字段

名称 说明
Boolean 2

Boolean 类型。

Byte 5

Byte 类型。

Char 3

Char 类型。

Double 13

Double 类型。

Int16 6

Int16 类型。

Int32 8

Int32 类型。

Int64 10

Int64 类型。

IntPtr 24

IntPtr 类型。

Object 28

Object 类型。

SByte 4

SByte 类型。

Single 12

Single 类型。

String 14

String 类型。

TypedReference 22

类型化的引用。

UInt16 7

UInt16 类型。

UInt32 9

UInt32 类型。

UInt64 11

UInt64 类型。

UIntPtr 25

UIntPtr 类型。

Void 1

Void 类型。

适用于

产品 版本
.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