[씨#] C #에서 Queryable.Contains 메서드와 List <T> .Contains 메서드의 차이점은 무엇입니까?
There is no difference in this case between List.Contains (which is the implementation of ICollection.Contains) and Enumerable.Contains - in the case where the enumerable is a collection, IEnumerable.Contains simply invokes ICollection.Contains. The reasoning there is that some collections - such as SortedSet - can implement a Contains method that operates at better than O(n) time. For non-colle..
카테고리 없음
2021. 3. 1. 15:24