Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a C# equivalent of java's AbstractList?

Java AbstractList class is very convenient when you need to implement the List interface whithout having to code everything from scratch.

Now, in C#, I need to implement a view on a part of my datamodel that would implement IList.

Is there an abstract class in .Net that I could inherit, in the same way that I would extend AbstractList if it was in Java ?

like image 286
Samuel Rossille Avatar asked Jan 16 '23 05:01

Samuel Rossille


1 Answers

You're looking for System.Collections.ObjectModel.Collection<T>.

like image 95
SLaks Avatar answered Jan 26 '23 01:01

SLaks