Esempio n. 1
0
        //Creates new;
        private Collection(Database database, string name, Func <CollectionHandle> generator)
        {
            Database         = database;
            _name            = name;
            CollectionHandle = generator();

            _functions = database.Library.Functions.Collection;

            Serializer = database.Serializer;
        }
Esempio n. 2
0
 /// <summary>
 /// Closes collection and disposes all owned resources
 /// </summary>
 public void Dispose()
 {
     if (CollectionHandle != null)
     {
         CollectionHandle.Dispose();
         CollectionHandle = null;
         _functions       = null;
         _serializer      = null;
     }
 }
Esempio n. 3
0
 protected static IObject getIndexed(String s, IObject i)
 {
     return(CollectionFunctions.getIndexed(s, i, (str, index) => str[index], (str, list) => str[list]));
 }