Used to convert each object from
GetItems(IExecutionContext)
into a IDictionary<string, object>.
The base implementation checks if the object implements IDictionary<string, object> and just
performs a cast is if it does. If not, reflection is used to construct a IDictionary<string, object>
from all of the object's properties. Override this method to provide an alternate way of getting
key-value pairs for each object.
Syntax
protected virtual IDictionary<string, object> GetDictionary(TItem item)
Parameters
Name |
Type |
Description |
item |
TItem |
The object to convert to a IDictionary<string, object>. |
Return Value
Type |
Description |
IDictionary<string, object> |
A IDictionary<string, object> containing the data used for document creation. |