ICommentOperationOrRowSelector ISourceSelector.With(TomlTable source) { this.source = source; return(this); }
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))); }
// Values public static TomlBool Add(this TomlTable table, string key, bool value) => AddTomlObjectInternal(table, key, table.CreateAttached(value));
public static TomlDuration Add(this TomlTable table, string key, TimeSpan value) => AddTomlObjectInternal(table, key, table.CreateAttached(value));
public static TomlArray Add(this TomlTable table, string key, IEnumerable <TimeSpan> values) => AddTomlObjectInternal(table, key, table.CreateAttached(values));
public void Add(TomlTable table) { this.items.Add(table); }
public static TomlFloat Add(this TomlTable table, string key, float value) => AddTomlObjectInternal(table, key, table.CreateAttached((double)value));
internal Result(TomlTable owner, T added) { this.owner = owner; this.added = added; }
public static Result <TomlInt> Update(this TomlTable table, string key, long value) => Update(table, key, table.CreateAttached(value));
public static void WriteFile(TomlTable table, string filePath, TomlSettings settings) => WriteFileInternal(table, filePath, settings);
public static void WriteStream(TomlTable table, Stream outStream) => WriteStreamInternal(table, outStream);
public static void WriteFile(TomlTable table, string filePath) => WriteFileInternal(table, filePath, TomlSettings.DefaultInstance);
public void Visit(TomlTable table) => Debug.Assert(false);
public OverwriteSourceOnlyRowsOperation(TomlTable target, TomlTable source, CommentsOp commentsOp) : base(target, source, commentsOp) { }
public static Result <TomlFloat> Add(this TomlTable table, string key, double value) => AddTomlObjectInternal(table, key, table.CreateAttached(value));
public static Result <TomlFloat> Update(this TomlTable table, string key, double value) => Update(table, key, table.CreateAttached(value));
public static Result <TomlArray> Add(this TomlTable table, string key, IEnumerable <float> array) => AddTomlObjectInternal(table, key, table.CreateAttached(array));
public static Result <TomlOffsetDateTime> Update(this TomlTable table, string key, DateTimeOffset value) => Update(table, key, table.CreateAttached(value));
public static TomlInt Add(this TomlTable table, string key, int value) => AddTomlObjectInternal(table, key, table.CreateAttached((long)value));
public static Result <TomlDuration> Update(this TomlTable table, string key, TimeSpan value) => Update(table, key, table.CreateAttached(value));
public static TomlOffsetDateTime Add(this TomlTable table, string key, DateTimeOffset value) => AddTomlObjectInternal(table, key, table.CreateAttached(value));
// 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));
public static TomlArray Add(this TomlTable table, string key, IEnumerable <DateTime> array) => AddTomlObjectInternal(table, key, table.CreateAttached(array));
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));
// 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));
public static Result <TomlArray> Update(this TomlTable table, string key, IEnumerable <TimeSpan> array) => Update(table, key, table.CreateAttached(array));
#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));
// Values public static Result <TomlBool> Update(this TomlTable table, string key, bool value) => Update(table, key, table.CreateAttached(value));
public static TomlArray AddArray(this TomlTable table, string key, IEnumerable <TimeSpan> values) => table.AddArray(key, table.CreateAttachedArray(values));
public OverwriteTableOperationBuilder(TomlTable target) { this.target = target; }