I have a linq query.
var query = (from s in dc.ClassInfos
where s.ClassName == tbSubject.Text
select new{
location = s.ClassLocation,
Date = s.ClassDate
});
Now I like to assign the location value to a local variable. Can you help me how to do this?