DataKind Enum

Definition

Specifies a simple data type.

public enum DataKind
type DataKind = 
Public Enum DataKind
Inheritance
DataKind

Fields

Boolean 12

boolean variable type, type of Boolean.

Byte 2

1-byte unsigned integer, type of Byte.

DateTime 14

type of DateTime.

DateTimeOffset 15

type of DateTimeOffset.

Double 10

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

Int16 3

2-byte integer, type of Int16.

Int32 5

4-byte integer, type of Int32.

Int64 7

8-byte integer, type of Int64.

SByte 1

1-byte integer, type of SByte.

Single 9

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

String 11

string, type of String.

TimeSpan 13

type of TimeSpan.

UInt16 4

2-byte usigned integer, type of UInt16.

UInt32 6

4-byte usigned integer, type of UInt32.

UInt64 8

8-byte usigned integer, type of UInt64.

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> xref:"System.ReadOnlyMemory`1.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