Skip to content

Is there any way to retrieve the line ? #70

@JeanArhancet

Description

@JeanArhancet

Hey there,

Thanks for your awesome Toml parser.

Is there a way to retrieve the line in which a toml element is located? For example, how can I find out the list line?

var toml = @"global = ""this is a string""
# This is a comment of a table
[my_table]
key = 1 # Comment a key
value = true
list = [4, 5, 6]
";

// Converts the TOML string to a `TomlTable`
var model = Toml.ToModel(toml);
// Prints "this is a string"
Console.WriteLine(model["global"]);

Is it possible to retrieve a line from a tomlArray...etc?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions