[]
Adds a child bject properties to the JSON object coder with the specified getter, and coder.
public JsonObjectCoderBuilder<TObject> Sub<TProperty>(Expression<Func<TObject, TProperty>> getter, Action<JsonObjectCoderBuilder<TProperty>> props, Func<TProperty, bool> skipOnWrite = null) where TProperty : new()
Type | Name | Description |
---|---|---|
Expression<Func<TObject, TProperty>> | getter | An Expression object to get the property value from the object. |
Action<JsonObjectCoderBuilder<TProperty>> | props | An Action for setting of an object properties to the object coder builder. |
Func<TProperty, bool> | skipOnWrite | A function with condition to skip writing the property. |
Type | Description |
---|---|
JsonObjectCoderBuilder<TObject> | The current instance of JsonObjectCoderBuilder<TObject>. |
Name | Description |
---|---|
TProperty | The type of the property. |