Message
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01328395
Message ID:
01328416
Views:
10
>
>You would use the x ? y : z syntax. It's weird and not very readable IMO.
>
>Something like:
>
>cString = "Some value " + this.textboxname.Text.ToString() + "\n" +
>  (BooleanVar ?  "Some Other Value " + this.textboxname2.Text.ToString() : "") + "\n";
>
Thank you. It does look weird but as long as it works, it is ok.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View