tags:

views:

38

answers:

3

I am having an issue here i have a list

this.Ddown having 3 properties

i want to write a Linq Query to return one of the property lets say i have property a,b,c

i want to retutn list(c)

how do i do that in linq

+1  A: 
var cList = (from record in this.Ddown
             select record.c).ToList();
jsmith
+1  A: 
var listOfC = this.Ddown.Select(x => x.c).ToList();
Matias
A: 

Think I got this syntaxed right,

var listOfC = (from x in this.Ddown
               select x.c).ToList()
Luke Duddridge