Beispiel #1
0
 // Table Array
 public static TomlTableArray Add <T>(
     this TomlTable table,
     string key,
     IEnumerable <T> tableArray,
     TomlTable.TableTypes tableType = TomlTable.TableTypes.Default)
 {
     return(AddTomlObjectInternal(table, key, table.CreateAttached(tableArray, tableType)));
 }
Beispiel #2
0
 public static TomlDuration Update(this TomlTable table, string key, TimeSpan value)
 => Update(table, key, table.CreateAttached(value));
Beispiel #3
0
 public static TomlDateTime Update(this TomlTable table, string key, DateTimeOffset value)
 => Update(table, key, table.CreateAttached(value));
Beispiel #4
0
 public static TomlFloat Update(this TomlTable table, string key, double value)
 => Update(table, key, table.CreateAttached(value));
Beispiel #5
0
 public static TomlInt Update(this TomlTable table, string key, long value)
 => Update(table, key, table.CreateAttached(value));
Beispiel #6
0
 // Values
 public static TomlBool Add(this TomlTable table, string key, bool value)
 => AddTomlObjectInternal(table, key, table.CreateAttached(value));
 public static Result <TomlArray> Update(this TomlTable table, string key, IEnumerable <DateTime> array)
 => Update(table, key, table.CreateAttached(array));
Beispiel #8
0
 public static TomlDuration Add(this TomlTable table, string key, TimeSpan value)
 => AddTomlObjectInternal(table, key, table.CreateAttached(value));
Beispiel #9
0
 public static TomlArray Add(this TomlTable table, string key, IEnumerable <DateTime> array)
 => AddTomlObjectInternal(table, key, table.CreateAttached(array));
Beispiel #10
0
 public static TomlFloat Add(this TomlTable table, string key, float value)
 => AddTomlObjectInternal(table, key, table.CreateAttached((double)value));
Beispiel #11
0
 public static TomlOffsetDateTime Add(this TomlTable table, string key, DateTimeOffset value)
 => AddTomlObjectInternal(table, key, table.CreateAttached(value));
Beispiel #12
0
 public static TomlInt Add(this TomlTable table, string key, int value)
 => AddTomlObjectInternal(table, key, table.CreateAttached((long)value));
Beispiel #13
0
 public static Result <TomlArray> Add(this TomlTable table, string key, IEnumerable <float> array)
 => AddTomlObjectInternal(table, key, table.CreateAttached(array));
Beispiel #14
0
 public static Result <TomlFloat> Add(this TomlTable table, string key, double value)
 => AddTomlObjectInternal(table, key, table.CreateAttached(value));
Beispiel #15
0
 public static TomlArray Update(this TomlTable table, string key, IEnumerable <TimeSpan> array)
 => Update(table, key, table.CreateAttached(array));
Beispiel #16
0
 public static TomlArray Add(this TomlTable table, string key, IEnumerable <TimeSpan> values)
 => AddTomlObjectInternal(table, key, table.CreateAttached(values));
Beispiel #17
0
 // Values
 public static TomlBool Update(this TomlTable table, string key, bool value)
 => Update(table, key, table.CreateAttached(value));
Beispiel #18
0
 public static Result <TomlString> Update(this TomlTable table, string key, string value)
 => Update(table, key, table.CreateAttached(value));