public void InsertOrIgnore(TKey key, TRecord record) { IData ikey = KeyTransformer.ToIData(key); IData irec = RecordTransformer.ToIData(record); Index.InsertOrIgnore(ikey, irec); }
public void Replace(TKey key, TRecord record) { IData ikey = KeyTransformer.ToIData(key); IData irec = RecordTransformer.ToIData(record); Index.Replace(ikey, irec); }
public TRecord TryGetOrDefault(TKey key, TRecord defaultRecord) { IData ikey = KeyTransformer.ToIData(key); IData idefaultRec = RecordTransformer.ToIData(defaultRecord); IData irec = Index.TryGetOrDefault(ikey, idefaultRec); TRecord record = RecordTransformer.FromIData(irec); return(record); }
public TRecord this[TKey key] { get { IData ikey = KeyTransformer.ToIData(key); IData irec = Index[ikey]; return(RecordTransformer.FromIData(irec)); } set { IData ikey = KeyTransformer.ToIData(key); IData irec = RecordTransformer.ToIData(value); Index[ikey] = irec; } }