Table of Contents

Class MapContract

Namespace
ShapeShift.Schema
Assembly
ShapeShift.dll

Describes a type that associates keys with values.

public sealed class MapContract : DataContract
Inheritance
MapContract
Inherited Members

Constructors

MapContract(Type, DataContract, DataContract, MapEncoding)

Initializes a new instance of the MapContract class.

public MapContract(Type dataType, DataContract keyType, DataContract valueType, MapEncoding encoding)

Parameters

dataType Type
The .NET type that this contract describes.
keyType DataContract

The contract describing each key.

valueType DataContract

The contract describing each value.

encoding MapEncoding

The encoding used for the map.

Properties

Encoding

Gets the encoding used for the map.

public MapEncoding Encoding { get; }

Property Value

MapEncoding

KeyType

Gets the contract describing each key.

public DataContract KeyType { get; }

Property Value

DataContract

Kind

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

public override DataContractKind Kind { get; }

Property Value

DataContractKind

ReferencedContracts

Gets the contracts that this contract directly refers to.

public override IEnumerable<DataContract> ReferencedContracts { get; }

Property Value

IEnumerable<DataContract>

Remarks

The sequence may contain the same contract more than once, and (for recursive types) may transitively include this contract itself.

ValueType

Gets the contract describing each value.

public DataContract ValueType { get; }

Property Value

DataContract