2
我可以用LINQ或代表來替換這些foreach嗎?Foreach in Linq
foreach (List<Shopping.BasketPayment> payList in Basket.basketPayments)
{
foreach (var pay in payList)
{
if (pay.paymentMethod == "Money Order"
{
foreach (OrderItem orderItem in order.Items)
{
可以呀,去了! – 2009-05-01 04:08:41