internal static string WriteTomlFragment(TomlTableArray array) { return(WriteIntoStream(WriteTomlTableArray)); void WriteTomlTableArray(FormattingStreamWriter stream) { var writer = new TomlTableWriter(stream, array.Root.Settings); writer.WriteTomlTableArray(string.Empty, KeyNotAvailable, array); } }
internal static string WriteTomlFragment(TomlTable table) { return(table.TableType == TomlTable.TableTypes.Inline ? WriteIntoStream(WriteInlineTable) : WriteIntoStream(WriteTable)); void WriteInlineTable(FormattingStreamWriter stream) { var writer = new TomlInlineTableWriter(stream, table.Root.Settings); writer.WriteInlineTableBody(table); } void WriteTable(FormattingStreamWriter stream) { var writer = new TomlTableWriter(stream, table.Root.Settings); writer.WriteToml(table); } }