Enum DataContractKind
- Namespace
- ShapeShift.Schema
- Assembly
- ShapeShift.dll
Enumerates the kinds of DataContract that ShapeShift can describe.
public enum DataContractKind
Fields
Dynamic = 9A value whose structure is only known at runtime, described by DynamicContract.
Enum = 5An enumeration described by EnumContract.
Map = 4An association of keys to values described by MapContract.
Object = 1A map of named properties described by ObjectContract.
Optional = 6A value that may be absent, described by OptionalContract.
Primitive = 0A scalar value described by PrimitiveContract.
RectangularArray = 3A multidimensional array described by RectangularArrayContract.
Sequence = 2A variable-length vector of homogeneous elements described by SequenceContract.
Surrogate = 8A type serialized through a surrogate, described by SurrogateContract.
Undocumented = 10A value whose representation is deliberately not described, per UndocumentedContract.
Union = 7A 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.