I have a problem, I have a list
this.Ddown having 3 properties
I want to write Linq Query to return one of the properties, let's say I have property a, b, c
I need a retutn (c) list
how to do it in linq
var cList = (from record in this.Ddown select record.c).ToList();
var listOfC = this.Ddown.Select(x => xc).ToList();
I think I got this syntax right,
var listOfC = (from x in this.Ddown select xc).ToList()
Source: https://habr.com/ru/post/1309795/More articles:PowerShell script to restart a service - powershellFind an element using jQuery - jqueryWhat is the name of the method in which images on a web page disappear when scrolling through the list? - htmlPython pointer simulation for arithmetic - pythonHow can I guarantee that JavaScript inserted via AJAX will be executed after the accompanying HTML (also received through AJAX) is ready in the DOM? - javascriptHow to split an en.yml file? - ruby-on-railsHow to crop all columns in all rows in all tables of a row type? - stringComboBox values ββdisappear after selection when objects used to display - c #Does computer graphics have practical use besides games / movies / pictures? - graphicsHow to simulate an internal exception in C ++ - c ++All Articles