Esempio n. 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)));
 }
Esempio n. 2
0
 public static TomlDuration Update(this TomlTable table, string key, TimeSpan value)
 => Update(table, key, table.CreateAttached(value));
Esempio n. 3
0
 public static TomlDateTime Update(this TomlTable table, string key, DateTimeOffset value)
 => Update(table, key, table.CreateAttached(value));
Esempio n. 4
0
 public static TomlFloat Update(this TomlTable table, string key, double value)
 => Update(table, key, table.CreateAttached(value));
Esempio n. 5
0
 public static TomlInt Update(this TomlTable table, string key, long value)
 => Update(table, key, table.CreateAttached(value));
Esempio n. 6
0
 // Values
 public static TomlBool Add(this TomlTable table, string key, bool value)
 => AddTomlObjectInternal(table, key, table.CreateAttached(value));
Esempio n. 7
0
 public static Result <TomlArray> Update(this TomlTable table, string key, IEnumerable <DateTime> array)
 => Update(table, key, table.CreateAttached(array));
Esempio n. 8
0
 public static TomlDuration Add(this TomlTable table, string key, TimeSpan value)
 => AddTomlObjectInternal(table, key, table.CreateAttached(value));
Esempio n. 9
0
 public static TomlArray Add(this TomlTable table, string key, IEnumerable <DateTime> array)
 => AddTomlObjectInternal(table, key, table.CreateAttached(array));
Esempio n. 10
0
 public static TomlFloat Add(this TomlTable table, string key, float value)
 => AddTomlObjectInternal(table, key, table.CreateAttached((double)value));
Esempio n. 11
0
 public static TomlOffsetDateTime Add(this TomlTable table, string key, DateTimeOffset value)
 => AddTomlObjectInternal(table, key, table.CreateAttached(value));
Esempio n. 12
0
 public static TomlInt Add(this TomlTable table, string key, int value)
 => AddTomlObjectInternal(table, key, table.CreateAttached((long)value));
Esempio n. 13
0
 public static Result <TomlArray> Add(this TomlTable table, string key, IEnumerable <float> array)
 => AddTomlObjectInternal(table, key, table.CreateAttached(array));
Esempio n. 14
0
 public static Result <TomlFloat> Add(this TomlTable table, string key, double value)
 => AddTomlObjectInternal(table, key, table.CreateAttached(value));
Esempio n. 15
0
 public static TomlArray Update(this TomlTable table, string key, IEnumerable <TimeSpan> array)
 => Update(table, key, table.CreateAttached(array));
Esempio n. 16
0
 public static TomlArray Add(this TomlTable table, string key, IEnumerable <TimeSpan> values)
 => AddTomlObjectInternal(table, key, table.CreateAttached(values));
Esempio n. 17
0
 // Values
 public static TomlBool Update(this TomlTable table, string key, bool value)
 => Update(table, key, table.CreateAttached(value));
Esempio n. 18
0
 public static Result <TomlString> Update(this TomlTable table, string key, string value)
 => Update(table, key, table.CreateAttached(value));