Tomlet icon indicating copy to clipboard operation
Tomlet copied to clipboard

Controlling inline generation

Open stephendrew opened this issue 3 months ago • 4 comments

    public bool CanBeSerializedInline
    {
      get
      {
        if (!this.IsTableArray)
          return true;
        return this.ArrayValues.All<TomlValue>((Func<TomlValue, bool>) (o => o is TomlTable tomlTable && tomlTable.ShouldBeSerializedInline)) && this.ArrayValues.Count <= 5;
      }
    }

It would be great if somehow we could control this "5" value...

stephendrew avatar Oct 24 '24 12:10 stephendrew