Using Linq Coalesce or need a c# equivalent to ? operand

  • Thread starter Thread starter guyinkalamazoo3
  • Start date Start date
G

guyinkalamazoo3

Guest
Everything in my code is working and returning what I would like it to, but I would like the UI to display "Yes" or "No" instead of "True" or "False". Instead of writing a slew of if then statements, is there a way in VB to write something like

results.OwnershiInVendor ? "Yes" : "No"

or what might be the best way to handle this? There are twelve labels that are returning results from the linq query.

Thanks


Brad Allison

Continue reading...
 

Similar threads

G
Replies
0
Views
117
guyinkalamazoo3
G
G
Replies
0
Views
145
guyinkalamazoo3
G
D
Replies
0
Views
109
Devon_Nullman
D
Back
Top