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...
 


Write your reply...

Similar threads

G
Replies
0
Views
127
guyinkalamazoo3
G
D
Replies
0
Views
114
Devon_Nullman
D
G
Replies
0
Views
153
guyinkalamazoo3
G
Back
Top