20 using System.Collections.Generic;
29 private readonly
Slice _slice;
49 return GetImpl(type.CreateType(), _slice)[symbol];
57 public PyObject
Get(PyObject type)
59 var result =
GetImpl(type.CreateType(), _slice) as object;
62 return result.ToPython();
69 public override int Count
71 get {
return _slice.Count; }
77 public override IReadOnlyList<Symbol>
Keys
79 get {
return _slice.Keys; }
85 public override IReadOnlyList<BaseData>
Values
87 get {
return _slice.Values; }
98 public override dynamic
this[
Symbol symbol]
102 return _slice[symbol];
113 return _slice.ContainsKey(symbol);
124 return _slice.TryGetValue(symbol, out data);