Can someone help me understand this class:
public abstract class BaseEntityCollection<T> : List<T> where T : BaseEntity, new()
{ }
You would then spcify a new Collection of Typ T such as:
public class AddressCollection : BaseEntityCollection<Address> {}
So does the abstract class read:
"create a new BaseEntityCollection of type T which inhreits properies of list of type T Where T inhreits from the base class of T"?
I am probably completly wrong, so I'd be helpful if someone could explain it to me in a little more detail, in laymans for now !
public abstract class BaseEntityCollection<T> : List<T> where T : BaseEntity, new()
{ }
You would then spcify a new Collection of Typ T such as:
public class AddressCollection : BaseEntityCollection<Address> {}
So does the abstract class read:
"create a new BaseEntityCollection of type T which inhreits properies of list of type T Where T inhreits from the base class of T"?
I am probably completly wrong, so I'd be helpful if someone could explain it to me in a little more detail, in laymans for now !