Convention ConfigurationSerialize Type As Json Property
Gets or sets a method that determines if the given type should be serialized to JSON. The default is to serialize types to JSON
if they can't be stored in any other Sphinx attribute type.
Definition
Namespace: SphinxConnector.FluentApi
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
C#
public Func<Type, bool> SerializeTypeAsJson { get; set; }VB
Public Property SerializeTypeAsJson As Func(Of Type, Boolean)
Get
SetProperty Value
FuncType, BooleanRemarks
By default, the following types are not serialized to JSON :
- Numeric types like int, float, decimal
- Strings
- Generic enumerables with numeric types
- Guid's