Пример #1
0
        /// <summary>
        ///     Returns a Slinq that enumerates the values contained in the list.
        ///     Ownership of the nodes contained in the list is transferred to the Slinq.  When the Slinq is disposed, the nodes will be added to the
        ///     disposal queue.
        /// </summary>
        public Slinq <T, LinkedContext <T> > SlinqAndDispose()
        {
            var slinq = LinkedContext <T> .Slinq(this, true);

            head  = null;
            tail  = null;
            count = 0;

            return(slinq);
        }
Пример #2
0
 /// <summary>
 ///     Returns a Slinq that enumerates the values contained in the list without reliquishing ownership of the nodes.
 ///     The caller of this method is responsible for making sure the returned Slinq is not used after the nodes are modified or returned to the
 ///     pool.
 /// </summary>
 public Slinq <T, LinkedContext <T> > SlinqAndKeep()
 {
     return(LinkedContext <T> .Slinq(this, false));
 }
Пример #3
0
 /// <summary>
 ///     Returns a Slinq that enumerates the values contained in the list without reliquishing ownership of the nodes.
 ///     The caller of this method is responsible for making sure the returned Slinq is not used after the nodes are modified or returned to the
 ///     pool.
 ///     If backtrack detection is enabled, the supplied backtrack detector can be returned to the pool using its TryReleaseShared method to
 ///     prevent subsequent enumeration of the returned Slinq.
 /// </summary>
 public Slinq <T, LinkedContext <T> > SlinqAndKeep(BacktrackDetector bd)
 {
     return(LinkedContext <T> .Slinq(this, bd, false));
 }
Пример #4
0
 public TestBase()
 {
     Context = new LinkedContext(@"Data source =\\10.10.10.2\\Iterative\\Projetos\\Linked Gourmet\\BaseDadosDev\\linked.db");
 }