[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Core.Rdl.Persistence.Json.JsonObjectCoderBuilder-1.Sub

Sub Method

Sub<TProperty>(Expression<Func<TObject, TProperty>>, Action<JsonObjectCoderBuilder<TProperty>>, Func<TProperty, bool>)

Adds a child bject properties to the JSON object coder with the specified getter, and coder.

Declaration
public JsonObjectCoderBuilder<TObject> Sub<TProperty>(Expression<Func<TObject, TProperty>> getter, Action<JsonObjectCoderBuilder<TProperty>> props, Func<TProperty, bool> skipOnWrite = null) where TProperty : new()
Parameters
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.

Returns
Type Description
JsonObjectCoderBuilder<TObject>

The current instance of JsonObjectCoderBuilder<TObject>.

Type Parameters
Name Description
TProperty

The type of the property.