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
-
objectMappingArgs
- 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.
- Else
What Switch does with a value no case matches:
fail, or the JSON text of a literal to write (nullonly 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.
- 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
Kreads a value without an offset as UTC; declare a zone and a format withoutKfor 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.
- 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.
- 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.