Table of Contents

Enum FloatFormatHandling

Namespace
Dynamicweb.Core.Json.Settings
Assembly
Dynamicweb.Core.dll
Specifies float format handling options when writing special floating point numbers, e.g. NaN, PositiveInfinity and NegativeInfinity with JsonWriter.
public enum FloatFormatHandling

Fields

DefaultValue = 2
Write special floating point values as the property's default value in JSON, e.g. 0.0 for a double property, null for a Nullable<T> of double property.
String = 0
Write special floating point values as strings in JSON, e.g. "NaN", "Infinity", "-Infinity".
Symbol = 1
Write special floating point values as symbols in JSON, e.g. NaN, Infinity, -Infinity. Note that this will produce non-valid JSON.
To top