PrimitiveSerializationTypeCode Enum

Definition

Specifies constants that define the type codes used to encode types of primitive values in a CustomAttribute value blob.

C#
public enum PrimitiveSerializationTypeCode
Inheritance
PrimitiveSerializationTypeCode

Fields

Name Value Description
Boolean 2

A Boolean type.

Char 3

A Char type.

SByte 4

A signed 1-byte integer type.

Byte 5

An unsigned 1-byte integer type.

Int16 6

A signed 2-byte integer type.

UInt16 7

An unsigned 2-byte integer type.

Int32 8

A signed 4-byte integer type.

UInt32 9

An unsigned 4-byte integer type.

Int64 10

A signed 8-byte integer type.

UInt64 11

An unsigned 8-byte integer type.

Single 12

A 4-byte floating point type.

Double 13

An 8-byte floating point type.

String 14

A String type.

Applies to

Product Versions
.NET Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)