Загрузка страницы

Extension Method Pitfalls

Isn't it cool that if your collection doesn't have an indexer, you can just use the ElementAt() extension method? Not it's not! It's a performance disaster.

Source code available at: https://github.com/JasperKent/Collection-Performance

Topics include:
- Benchmarking of for versus foreach in .NET and C#
- Benchmarking of List versus LinkedList
- Underlying structure of List and LinkedList
- Comparison of IEnumerable, ICollection and IList
- Problems of the Count() and ElementAt() extension methods

Видео Extension Method Pitfalls канала Coding Tutorials
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
1 июля 2022 г. 12:44:25
00:16:16
Яндекс.Метрика