Translate this VB.NET LINQ statement to C#, having trouble
-
07-07-2019 - |
Solution
I'm surprised none of the popular conversion sites support LINQ syntax (as far as I can tell)
if(!IsPostBack)
{
var q = from f in System.Drawing.FontFamily.Families select f.Name
ListBox1.DataSource = q;
ListBox1.DataBind()
}
OTHER TIPS
var q = from f in System.Drawing.FontFamily.Families select f.Name;
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow