Documentation
Table of Contents

Class MappingArgs

Namespace
IntentSharp.Mapping
Assembly
IntentSharp.dll

The arguments of one MappingStep. Every member is optional here; each op takes a fixed set, and a mapping that sets an argument its op does not take, or leaves out one it needs, is refused.

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

Remarks

A stored argument this library does not know fails to load.

Constructors

MappingArgs()

Creates arguments with nothing set.

Properties

Cases

The table of Lookup (each key to a literal) or the cases of Switch (each key to a literal or a source).

Converter

The name of the registered converter Convert runs (MappingConverterRegistry); names ignore case.

DecimalSeparator

The decimal separator a number parse reads, or FormatNumber writes.

Decimals

The number of decimals Round keeps.

Else

What Switch does with a value no case matches: fail, or the JSON text of a literal to write (null only for a target that accepts null).

ElseStep

The step WhenEquals runs when its source does not equal Literal, a null included; it writes the same target as Then.

Factor

The factor Scale multiplies by.

FalseTokens

The tokens ParseBool reads as false.

Format

The format FormatDate or FormatNumber writes with, using the invariant culture.

Formats

The exact formats ParseDate and ParseDateTime accept, read with the invariant culture. A format with K reads a value without an offset as UTC; declare a zone and a format without K for local times.

GroupSeparator

The group (thousands) separator a number parse reads, or FormatNumber writes.

IgnoreCase

True when ParseBool compares its tokens ignoring case (ordinal); false or null compares them exactly.

Index

The 0-based part Split writes.

Length

The number of characters Take writes, counted as Mask counts them.

Literal

The literal written by Constant, or written by DefaultIfNull when the source is null, or the value of the closed set WhenEquals compares its source with.

Literals

The literals that NullIf turns into null.

Mode

How Round breaks a tie: ToEven or AwayFromZero.

OnMissing

What Lookup does with a value that is not a key: fail, the only value allowed.

Separator

The separator Concat joins with, or Split splits on.

Start

The 0-based position Take starts at, counted in characters as Mask counts them.

Then

The step WhenEquals runs when its source equals Literal. It writes the WhenEquals step's own target, so its Target is that target; it may not be an Each step.

TimeZone

The IANA time zone ParseDateTime reads a local time in.

TrueTokens

The tokens ParseBool reads as true.