List in C# - passing multiple entries as a single object
- by Karthick
Hi,
I have a method (C#)
public void MethodName(List<Order> Order, int ID)
I need to pass this to a main page, in which i know to pass integer value to ID, am not able to pass multiple items in a single list.
The List order should have two number entries, (ie. Order.number1 and Order.number2)
How should i pass a single list as a parameter to this method containing multiple entries of number1 and 2, so that i can loop thro' and find it.
Thanks.