Function ListExtensions.ToArrayFromPool
        
                ToArrayFromPool<T>
        
                (this List<T> list)
    
            
            Identical to ToArray but it uses ArrayPool<T> to avoid allocations if possible.
                Public
                    Static
            
        T[] ToArrayFromPool<T> (
this List<T>  |     list  |         
Identical to ToArray but it uses ArrayPool<T> to avoid allocations if possible.
Use with caution as pooling too many arrays with different lengths that are rarely being reused will lead to an effective memory leak.