PushBlockSequenceItemStyle(YamlSequenceItemStyle, YamlSequenceItemStyle) Method

Definition

Assembly SharpYaml.dll

Temporarily overrides how nested block collections are emitted when they appear as items in block sequences.

public YamlWriter.BlockSequenceItemStyleScope PushBlockSequenceItemStyle(YamlSequenceItemStyle mappingStyle, YamlSequenceItemStyle sequenceStyle)

Parameters

mappingStyle
YamlSequenceItemStyle

The mapping style override, or Default to keep the current mapping style.

sequenceStyle
YamlSequenceItemStyle

The sequence style override, or Default to keep the current sequence style.

Returns

YamlWriter.BlockSequenceItemStyleScope
A scope that restores the previous styles when disposed.