Dela via


DataKind Enum

Definition

Specifies a simple data type.

public enum DataKind
type DataKind = 
Public Enum DataKind
Inheritance
DataKind

Fields

Name Value Description
SByte 1

1-byte integer, type of SByte.

Byte 2

1-byte unsigned integer, type of Byte.

Int16 3

2-byte integer, type of Int16.

UInt16 4

2-byte unsigned integer, type of UInt16.

Int32 5

4-byte integer, type of Int32.

UInt32 6

4-byte unsigned integer, type of UInt32.

Int64 7

8-byte integer, type of Int64.

UInt64 8

8-byte unsigned integer, type of UInt64.

Single 9

4-byte floating-point number, type of Single.

Double 10

8-byte floating-point number, type of Double.

String 11

string, type of ReadOnlyMemory<T>, where T is Char. Also compatible with String.

Boolean 12

boolean variable type, type of Boolean.

TimeSpan 13

type of TimeSpan.

DateTime 14

type of DateTime.

DateTimeOffset 15

type of DateTimeOffset.

Remarks

Some transforms use the default value and/or missing value of the data types. The table below shows the default value definition for each of the data types.

Type Default Value IsDefault Indicator
String or text Empty or null string (both result in empty System.ReadOnlyMemory<char> IsEmpty
Key type (supported by the unsigned integer types in DataKind) Not defined Always false
All other types Default value of the corresponding system type as defined by .NET standard. In C#, default value expression default(T) provides that value. Equality test with the default value

The table below shows the missing value definition for each of the data types.

Type Missing Value IsMissing Indicator
String or text Not defined Always false
Key type (supported by the unsigned integer types in DataKind) 0 Equality test with 0
Single NaN IsNaN(Single)
Double NaN IsNaN(Double)
All other types Not defined Always false

Applies to