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
dataTypeType- The .NET type that this contract describes.
primitiveTypePrimitiveDataTypeThe 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
PrimitiveType
Gets the primitive data type that describes the encoding.
public PrimitiveDataType PrimitiveType { get; }
Property Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.