Table of Contents

Class PrimitiveContract

Namespace
ShapeShift.Schema
Assembly
ShapeShift.dll

Describes a scalar value that ShapeShift encodes natively.

public sealed class PrimitiveContract : DataContract
Inheritance
PrimitiveContract
Inherited Members

Constructors

PrimitiveContract(Type, PrimitiveDataType)

Describes a scalar value that ShapeShift encodes natively.

public PrimitiveContract(Type dataType, PrimitiveDataType primitiveType)

Parameters

dataType Type
The .NET type that this contract describes.
primitiveType PrimitiveDataType

The primitive data type that describes the encoding.

Properties

Kind

Gets the kind of this contract, which identifies the concrete subclass.

public override DataContractKind Kind { get; }

Property Value

DataContractKind

PrimitiveType

Gets the primitive data type that describes the encoding.

public PrimitiveDataType PrimitiveType { get; }

Property Value

PrimitiveDataType

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.