Exemplo n.º 1
0
 ICommentOperationOrRowSelector ISourceSelector.With(TomlTable source)
 {
     this.source = source;
     return(this);
 }
Exemplo n.º 2
0
 public static TomlTable Add(
     this TomlTable table, string key, object obj, TomlTable.TableTypes tableType = TomlTable.TableTypes.Default)
 {
     return(AddTomlObjectInternal(table, key, TomlTable.CreateFromComplexObject(table.Root, obj, tableType)));
 }
Exemplo n.º 3
0
 // Values
 public static TomlBool Add(this TomlTable table, string key, bool value)
 => AddTomlObjectInternal(table, key, table.CreateAttached(value));
Exemplo n.º 4
0
 public static TomlDuration Add(this TomlTable table, string key, TimeSpan value)
 => AddTomlObjectInternal(table, key, table.CreateAttached(value));
Exemplo n.º 5
0
 public static TomlArray Add(this TomlTable table, string key, IEnumerable <TimeSpan> values)
 => AddTomlObjectInternal(table, key, table.CreateAttached(values));
Exemplo n.º 6
0
 public void Add(TomlTable table)
 {
     this.items.Add(table);
 }
Exemplo n.º 7
0
 public static TomlFloat Add(this TomlTable table, string key, float value)
 => AddTomlObjectInternal(table, key, table.CreateAttached((double)value));
Exemplo n.º 8
0
 internal Result(TomlTable owner, T added)
 {
     this.owner = owner;
     this.added = added;
 }
Exemplo n.º 9
0
 public static Result <TomlInt> Update(this TomlTable table, string key, long value)
 => Update(table, key, table.CreateAttached(value));
Exemplo n.º 10
0
Arquivo: Toml.cs Projeto: zanedp/Nett
 public static void WriteFile(TomlTable table, string filePath, TomlSettings settings) =>
 WriteFileInternal(table, filePath, settings);
Exemplo n.º 11
0
Arquivo: Toml.cs Projeto: zanedp/Nett
 public static void WriteStream(TomlTable table, Stream outStream) =>
 WriteStreamInternal(table, outStream);
Exemplo n.º 12
0
Arquivo: Toml.cs Projeto: zanedp/Nett
 public static void WriteFile(TomlTable table, string filePath) =>
 WriteFileInternal(table, filePath, TomlSettings.DefaultInstance);
Exemplo n.º 13
0
 public void Visit(TomlTable table) => Debug.Assert(false);
Exemplo n.º 14
0
 public OverwriteSourceOnlyRowsOperation(TomlTable target, TomlTable source, CommentsOp commentsOp)
     : base(target, source, commentsOp)
 {
 }
Exemplo n.º 15
0
 public static Result <TomlFloat> Add(this TomlTable table, string key, double value)
 => AddTomlObjectInternal(table, key, table.CreateAttached(value));
Exemplo n.º 16
0
 public static Result <TomlFloat> Update(this TomlTable table, string key, double value)
 => Update(table, key, table.CreateAttached(value));
Exemplo n.º 17
0
 public static Result <TomlArray> Add(this TomlTable table, string key, IEnumerable <float> array)
 => AddTomlObjectInternal(table, key, table.CreateAttached(array));
Exemplo n.º 18
0
 public static Result <TomlOffsetDateTime> Update(this TomlTable table, string key, DateTimeOffset value)
 => Update(table, key, table.CreateAttached(value));
Exemplo n.º 19
0
 public static TomlInt Add(this TomlTable table, string key, int value)
 => AddTomlObjectInternal(table, key, table.CreateAttached((long)value));
Exemplo n.º 20
0
 public static Result <TomlDuration> Update(this TomlTable table, string key, TimeSpan value)
 => Update(table, key, table.CreateAttached(value));
Exemplo n.º 21
0
 public static TomlOffsetDateTime Add(this TomlTable table, string key, DateTimeOffset value)
 => AddTomlObjectInternal(table, key, table.CreateAttached(value));
Exemplo n.º 22
0
 // Table
 public static Result <TomlTable> Update <T>(
     this TomlTable table,
     string key,
     IDictionary <string, T> tableData,
     TomlTable.TableTypes type = TomlTable.TableTypes.Default)
 => Update(table, key, CreateAttached(table, tableData, type));
Exemplo n.º 23
0
 public static TomlArray Add(this TomlTable table, string key, IEnumerable <DateTime> array)
 => AddTomlObjectInternal(table, key, table.CreateAttached(array));
Exemplo n.º 24
0
 public static Result <TomlTable> Update(
     this TomlTable table, string key, object obj, TomlTable.TableTypes type = TomlTable.TableTypes.Default)
 => Update(table, key, CreateAttached(table, obj, type));
Exemplo n.º 25
0
 // Table
 public static TomlTable Add <T>(
     this TomlTable table,
     string key,
     IDictionary <string, T> tableData,
     TomlTable.TableTypes tableType = TomlTable.TableTypes.Default)
 => AddTomlObjectInternal(table, key, CreateAttached(table, tableData, tableType));
Exemplo n.º 26
0
 public static Result <TomlArray> Update(this TomlTable table, string key, IEnumerable <TimeSpan> array)
 => Update(table, key, table.CreateAttached(array));
Exemplo n.º 27
0
#pragma warning disable SA1313 // Parameter names must begin with lower-case letter
        public static T Add <T>(
            this TomlTable table, string key, T obj, RequireTomlObject <T> _ = null)
            where T : TomlObject
        => AddTomlObjectInternal(table, key, obj.Root == table.Root ? obj : (T)obj.CloneFor(table.Root));
Exemplo n.º 28
0
 // Values
 public static Result <TomlBool> Update(this TomlTable table, string key, bool value)
 => Update(table, key, table.CreateAttached(value));
Exemplo n.º 29
0
 public static TomlArray AddArray(this TomlTable table, string key, IEnumerable <TimeSpan> values)
 => table.AddArray(key, table.CreateAttachedArray(values));
Exemplo n.º 30
0
 public OverwriteTableOperationBuilder(TomlTable target)
 {
     this.target = target;
 }