Hi everyone,
there are many class available to store class models like List, IEnumerable, IQueryable, ObservableCollection, which class is in best use as per industry that can support all sorts of searching, manipulating with high performance.
Thanls
Devendra
Devendra KumarPosted Dec 4, 2020, 2:32 AM
Rajanikant HawaldarPosted Dec 3, 2020, 12:59 AM
Sachin SinghPosted Dec 2, 2020, 8:14 AM
List
IEnumerable:- just loop through collection (Best suited for UI (Controller,web form's Code behind))
IQueryable:- Gets filtered data from database (best for search functionality in business layer)
ObservableCollection:- To notify if data is manupulated inside collection.(use it accordingly)
In short , no collection is better than others each have different purpose, otherwise microsoft dev is not a fool who will create so many collections for nothing.
Sanjay Mrinal Kumar KodangiPosted Dec 2, 2020, 7:37 AM