Exemplo n.º 1
0
        public bool TryGet(string key, out V value)
        {
            Preconditions.CheckNotNullArgument(key);
            long position;

            if (Index.TryGetEntry(key, out position))
            {
                if (position == 0)
                {
                    mReader.Sync(position);
                }                                              // lib issue workaround
                else
                {
                    mReader.Seek(position);
                }
                value = ValueDef.GetValue(mReader.Next());
                return(true);
            }
            value = default(V);
            return(false);
        }
Exemplo n.º 2
0
 public bool MoveNext()
 {
     Current = ValueDef.GetValue(mReader.Next());
     return(mReader.HasNext());
 }