I am implementing IListSource that requires a method GetList() with the following signature:
IList GetList()
I am using .NET framework 2 and I'm wanting to return an object that implements IList as follows:
public System.Collections.IList GetList()
{
return this._mydata; // …
I have a class called Order which has properties such as OrderId, OrderDate, Quantity, and Total. I have a list of this Order class:
List<Order> objListOrder = new List<Order>();
GetOrderList(objListOrder); // fill list of orders
…
I've recently started using c# moving over from Java. I can't seem to find how to get a list item by index. In java to get the first item of the list it would be:
list1.get(0);
What is the …