I'm looking to see if putting a .ToList()
on an IEnumerable
which might or might not be a list will incur a performance hit if the Object
is already a List
.
My Goal was to look at the source code. and this is where the tunnel of questions begins. First I found SO Question Where can I view LINQ source code? [closed] this leads to the Full Framework version of DOTNet but digging into the code just show a small Enumerable class Enumerable.
Question
Where is the source code for the following Extention Method?
public static List<TSource> ToList<TSource>(this IEnumerable<TSource> source);
Sub-Question 1 Where is the full frameWork Version?
Sub-Question 2 Where is the .net core Version?