Table of Contents

FlattenCollectionItems Property

Definition

FlattenCollectionItems

Gets or sets a value indicating whether collection items should be serialized as repeated elements using the property name instead of being wrapped in a generic Item element.

public bool FlattenCollectionItems { get; set; }

Property Value

bool

true to emit one repeated element per item named after the enclosing property; false to use the default Item wrapper. The default is false.