-
-
Notifications
You must be signed in to change notification settings - Fork 244
Expand file tree
/
Copy pathSystemTextJsonParsingConfig.cs
More file actions
30 lines (27 loc) · 1.31 KB
/
SystemTextJsonParsingConfig.cs
File metadata and controls
30 lines (27 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
namespace System.Linq.Dynamic.Core.SystemTextJson.Config;
/// <summary>
/// Configuration class for System.Linq.Dynamic.Core.SystemTextJson which implements the <see cref="ParsingConfig"/>.
/// </summary>
public class SystemTextJsonParsingConfig : ParsingConfig
{
/// <summary>
/// The default ParsingConfig for <see cref="SystemTextJsonParsingConfig"/>.
/// </summary>
public new static SystemTextJsonParsingConfig Default { get; } = new SystemTextJsonParsingConfig
{
ConvertObjectToSupportComparison = true
};
/// <summary>
/// Gets or sets a value indicating whether the objects in an array should be normalized before processing.
/// </summary>
public bool Normalize { get; set; } = true;
/// <summary>
/// Gets or sets the behavior to apply when a property value does not exist during normalization.
/// </summary>
/// <remarks>
/// Use this property to control how the normalization process handles properties that are missing or undefined.
/// The selected behavior may affect the output or error handling of normalization operations.
/// The default value is <see cref="NormalizationNonExistingPropertyBehavior.UseNull"/>.
/// </remarks>
public NormalizationNonExistingPropertyBehavior NormalizationNonExistingPropertyValueBehavior { get; set; }
}