Documentation
Table of Contents

Class MappingCase

Namespace
IntentSharp.Mapping
Assembly
IntentSharp.dll

One entry of a Lookup table or a Switch: a key of the closed set and what it maps to.

[JsonUnmappedMemberHandling(JsonUnmappedMemberHandling.Disallow)]
public sealed class MappingCase
Inheritance
object
MappingCase
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Extension Methods

Constructors

MappingCase()

Creates a case; set Key and one of Value or Path.

Properties

Key

The value of the closed set this case matches: an enum member's wire name, true or false, or a declared allowed value.

Path

For Switch only: the input member copied when the case matches, as a JSON Pointer. Set this or Value, not both.

Value

The literal written when the case matches. Set this or Path, not both.