18 using System.Collections.Generic;
21 using System.Collections;
58 protected abstract IEnumerable<Symbol>
GetKeys {
get; }
66 protected abstract IEnumerable<T>
GetValues {
get; }
94 public virtual T
this[
Symbol symbol]
112 public virtual T
this[
string ticker]
130 this[symbol] = value;
158 return fromkeys(sequence,
default(T));
172 var dict =
new PyDict();
173 foreach (var key
in sequence)
175 var pyValue =
get(key, value);
176 dict.SetItem(key.ToPython(), pyValue.ToPython());
220 var pyList =
new PyList();
223 using (var pyKey = key.ToPython())
225 using (var pyValue =
this[key].ToPython())
227 using (var pyObject =
new PyTuple(
new PyObject[] { pyKey, pyValue }))
229 pyList.Append(pyObject);
280 this[symbol] = default_value;
281 return default_value;
292 return pop(symbol,
default(T));
310 return default_value;
325 var dictionary = other.ConvertToDictionary<
Symbol, T>();
326 foreach (var kvp
in dictionary)
328 this[kvp.Key] = kvp.
Value;