ConventionConfigurationSerializeTypeAsJson 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
C#
public Func<Type, bool> SerializeTypeAsJson { get; set; }

Property Value

FuncType, Boolean

Remarks

By default, the following types are not serialized to JSON :
  • Numeric types like int, float, decimal
  • Strings
  • Generic enumerables with numeric types
  • Guid's

See Also