I have an object with several IEnumerable collections:
public class Product
{
public int id {get;set;}
public string name {get;set;}
IEnumerable<CrossSell> CrossSells {get;set;}
IEnumerable<UpSell> UpSells {get;set;}
IEnumerable<PricePromos> PricePromos {get;set;}
}
I need to create a null object (all properties are blank but not null).
Apparently, I cannot just create an Enumerable item.
Other than creating an entirely new class, how could I do this?
Enumerable.Empty<T>()or just a new, zero-length array.