![]() One executes on the client side and the other executes on the database. So the difference between “IQueryable” and “IEnumerable” is about where the filter logic is executed. IDictionary: -This interface is implemented by hashtable and dictionary. IList: -This interface allows random access, insertion and deletion in to the collection.Itsimplemented by array list. ICollection: - This interface has the count property and it’s implemented by all collection elements. IEnumerable: - All collection classes use this interface and it helps to iterate through all the collection elements. The above 4 entities are nothing but interfaces implemented by collections:. What is the use of IEnumerable, ICollection, Ilist and IDictionary? Hashtable generic equivalent is Dictionary.What are the generic equivalent for array list, stack, queues and hashtable?īelow are the listed generic equivalents for each of them:. Welcome to 4th(Final) Part of C# Interview Questions & Answers. Links to previous part of C# Interview Q&A :-Ĭ#(CSharp)Interview Questions & Answers) - Part 1.Ĭ#(CSharp) Interview Questions & Answers) - Part 2.Ĭ#(CSharp) Interview Questions & Answers) - Part 3. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |