/// <summary> /// Returns a Slinq that enumerates the key, value groupings contained in the lookup, with the values returned in Slinq form. /// As the groupings are enumerated, ownership of the values in each grouping is transferred to the Slinq contained in the grouping. /// When the enumeration is complete, the lookup and any unenumerated values it contains are added to the disposal queue. /// </summary> public Slinq <Grouping <K, T, LinkedContext <T> >, GroupByContext <K, T> > SlinqAndDispose() { return(GroupByContext <K, T> .Slinq(this, true)); }
/// <summary> /// Returns a Slinq that enumerates the key, value groupings contained in the lookup, with the values returned in Slinq form. /// Ownership of the lookup and any values it contains is retained by the caller. /// </summary> public Slinq <Grouping <K, T, LinkedContext <T> >, GroupByContext <K, T> > SlinqAndKeep() { return(GroupByContext <K, T> .Slinq(this, false)); }