I have list of emplyoees, then which one I should use between IList and List and why? I am using C#.
In which scenario I use List and IList.
Thank you.
I have list of emplyoees, then which one I should use between IList and List and why? I am using C#.
In which scenario I use List and IList.
Thank you.
Copyright © 2021 Jogjafile Inc.
IList represent a non-generic collection for collection of objects. If you use IList you can create customized
Lists and use advantages of DIP (Dependency Inversion Principle) of OOP.You behave same with these two kind of lists.