Answers for "how to get the items of a list c#"

C#
1

c# find element in list of list

var element = (from sublist in userList
               from item in sublist
               where item.uniqueidentifier == someid
               select item).FirstOrDefault();
Posted by: Guest on June-24-2020
0

c# get all elements from list

You could get the Customers like this:

using System.Linq;

collectionCarts.SelectMany(c => c.OrderList.Select(o => o.Customer));
Posted by: Guest on March-16-2021

Code answers related to "how to get the items of a list c#"

C# Answers by Framework

Browse Popular Code Answers by Language