IEnumerable Interface (System.Collections.Generic) Hope this helps! class with List property, interface with IEnumerable How do they work? Note that this does not modify the original collection, just points the reference to a new collection. List to IEnumerable The most basic function fingerprint would be . So: We can act upon a List and an array with the same code, by using … ArgumentNullException 说Value不能为null。. get string from ienumerable string c#. You can append this method to your query in order to obtain a cached copy of the query results. Enumerable.ToList(IEnumerable) … init ienumerable<>. Older versions of .NET framework will not accept IEnumerable as a parameter, so you need to do additional cast to an Array.