Question:What is the advantage of using IList<T> over List<T>? 

A IList<T> uses reflection, which is the most efficient way to process an object inside memory. 

B IList<T> implements hashing to store objects in the collection; which produces optimum performance. 

C Using IList<T> rather than List<T> allows the code to be more flexible. It can replace the implementation with any collection that implements IList<T> without breaking any calling code. 

D IList<T> only allows immutable types to be stored inside the collection. 

+ Answer
+ Report
Total Preview: 1107

Copyright © 2024. Powered by Intellect Software Ltd