eoswin
asked on
manipulate string collection using linq
I have a collection List<string>
Orders.Order_Details.Produ ct.Supplie r
Orders.Order_Details
Orders
Orders.Employee
how to format the data into like the following using linq or other method
Orders.Order_Details.Produ ct.Supplie r
Orders.Employee
Orders.Order_Details.Produ
Orders.Order_Details
Orders
Orders.Employee
how to format the data into like the following using linq or other method
Orders.Order_Details.Produ
Orders.Employee
Your question is unclear. Are you asking how to filter the list to show just those items mentioned in the second half of your post? What "formatting" are you trying to accomplish?
ASKER
format is not the correct word. it is like comparing each row with all other rows
because the 3rd value "Orders" and 2nd value "Orders.Order_Details"
exists in the 1st value "Orders.Order_Details.Prod uct.Suppli er"
and 4th value "Orders.Employee" does not exists in any other rows. i will be as it is.
so, results will be like this
Orders.Order_Details.Produ ct.Supplie r
Orders.Employee
because the 3rd value "Orders" and 2nd value "Orders.Order_Details"
exists in the 1st value "Orders.Order_Details.Prod
and 4th value "Orders.Employee" does not exists in any other rows. i will be as it is.
so, results will be like this
Orders.Order_Details.Produ
Orders.Employee
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thank you