List in C# - passing multiple entries as a single object
Posted
by Karthick
on Stack Overflow
See other posts from Stack Overflow
or by Karthick
Published on 2010-06-14T18:45:17Z
Indexed on
2010/06/14
18:52 UTC
Read the original article
Hit count: 120
c#
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.
© Stack Overflow or respective owner