Table of Contents

Enum DataContractKind

Namespace
ShapeShift.Schema
Assembly
ShapeShift.dll

Enumerates the kinds of DataContract that ShapeShift can describe.

public enum DataContractKind

Fields

Dynamic = 9

A value whose structure is only known at runtime, described by DynamicContract.

Enum = 5

An enumeration described by EnumContract.

Map = 4

An association of keys to values described by MapContract.

Object = 1

A map of named properties described by ObjectContract.

Optional = 6

A value that may be absent, described by OptionalContract.

Primitive = 0

A scalar value described by PrimitiveContract.

RectangularArray = 3

A multidimensional array described by RectangularArrayContract.

Sequence = 2

A variable-length vector of homogeneous elements described by SequenceContract.

Surrogate = 8

A type serialized through a surrogate, described by SurrogateContract.

Undocumented = 10

A value whose representation is deliberately not described, per UndocumentedContract.

Union = 7

A discriminated union described by UnionContract.

Remarks

Each member corresponds to exactly one concrete DataContract subclass, allowing consumers to switch over Kind instead of type testing.