score:2
Accepted answer
var list = new list<dynamic>
{
new {userid="simone", networks = "cmt,mtt,mvv"},
new {userid="curtink", networks = "mtr,nan,nog"},
new {userid="jamesl", networks = "cmt,logo,cmdy"},
new {userid="bondineg", networks = "tvl,tvlc,nktn"}
};
var users = string.join(",", list.where(d => d.networks.contains("cmt"))
.select(u => u.userid));
Source: stackoverflow.com
Related Query
- Get values from a column having comma separated values using Linq
- How to check comma separated values stored in data base column having the given value using linq in c#
- How can I get a comma separated list of values from a List using LINQ?
- Group DataSet Column Values into Comma Separated String using LINQ
- Filter from table for column having comma and pipe separated values
- How to Join with a column having Comma Separated Values in Linq
- Get indexes of all matching values from list using Linq
- Get grouped comma separated values with linq
- How to get Distinct Values from List(Of T) using Linq
- C# Using Linq to get column from jagged array
- How to get only Date from datetime column using linq
- Get a comma separated list of entity collection using linq
- how to get two column values in a single query using linq to entities
- Using C#, LINQ - want to get column names AND data values
- Get Max from column datatable or Default Value using Linq
- Get distinct value from comma seperated array using LINQ
- How to extract items at specified locations from list of comma separated strings using LINQ
- How to Get The Values Printed from XML using LINQ or XPath
- order datatable by relevance using linq by column values which are comma sperated
- how to join two tables with comma separated values column in c# linq asp.net mvc
- Get values from list that match BOTH attributes using c# LINQ
- Get columns values in data table using linq from Entity Framework
- Using linq to select all values from one column based on a distinct second column
- Use LINQ to get comma separated list from different table
- LINQ: join multiple Table Column using Linq and find aggregated sum from child table values
- want to get data from specific column of azure mobile service table using linq
- selecting a column values from a Table using LINQ (Entity Framework)
- Using LINQ to get values from Stored Procedure
- How to get values from class list inside a class using linq
- How to get Column Names using Linq from DataTable
More Query from same tag
- How to make generic lambda by MakeGenericType
- How to group by on a reference type property in linq?
- Populating ComboBox Items with members from a dynamic database, C#
- VB.NET LINQ query on List(Of Object)
- Integration testing web services against a testing database
- Instantiate defined object with Linq Query
- Expression tree from IronPython
- entity framework - Read TPT data using DBSet<T>.SqlQuery
- SubSonic 3, build dynamic or expression at runtime
- Get data by ForeignKey
- The principal end of this association must be explicitly configured using either the relationship fluent API or data annotations
- HashSet<T> quickly checking if identity exists by T.identity
- Full join in Linq
- Better way to accomplish sorting a Generic List of IQueryable?
- LINQ filter on table to meet several criteria / DateDifference
- Passing F# function to IEnumerable.Where vs IEnumerable.All
- “Grouping” dictionary by value of class property
- Querying Json as string within a property of an object using linq
- Using Func property selector with Entity Framework 6
- Entity framework core TPH query across different subtype properties
- Custom Linq-to-SQL MappingSource
- LINQ query in View to order sum of amounts for category in ascending or descending order
- Linq to XML - update/alter the nodes of an XML Document
- Dynamic Linq where clause throws OutOfMemoryException
- How to get children data from json via linq
- LINQ - joining multiple lists
- One to many linq query
- How to extend LinqKit and use a custom method within a linq query?
- Select distinct items by combination of two columns and where Value of third column is max- LINQ
- Where IN clause in LINQ