I have a class called Product in my Business object and in another class i want to return a list of objects of this class.Which approach i should use ?
public static List<Product> GetProductList() { .... }
or create another class in my Business object namspace called ProductList which extends List <Products>
as follows:
public class ProductList :List<Products > { .... }
and use it there
public static ProductList GetProductList() { .... }
Is there any difference between these two ? How abt the memory allocation and performance ?