public FrameDR Add(params ValueTuple <string, dynamic>[] values) { for (int i = 0; i < values.Length; i++) { if (CustomColumns.ContainsKey(values[i].Item1)) { CustomColumns[values[i].Item1] = values[i].Item2; } else { CustomColumns.Add(values[i].Item1, values[i].Item2); } } return(this); }
public FrameDR Add(Dictionary <string, dynamic> values) { foreach (var kv in values) { if (CustomColumns.ContainsKey(kv.Key)) { CustomColumns[kv.Key] = kv.Value; } else { CustomColumns.Add(kv.Key, kv.Value); } } return(this); }
public override bool TrySetMember(SetMemberBinder binder, object value) { if (FrameColumns.ContainsKey(binder.Name)) { IColumn s = (IColumn)CallSites[binder.Name].Target(CallSites[binder.Name], this.Frame); return(s.SetVal(Index, value)); } else if (CustomColumns.ContainsKey(binder.Name)) { return(CustomColumns[binder.Name] = value); } else { CustomColumns.Add(binder.Name, value); return(true); } }