Page is a not externally linkable
- Microsoft
-- Microsoft IIS Web Server and ASP.NET
---- C# syntax question


GaryK - 6:03 am on Jul 25, 2007 (gmt 0)


I'm still in the very early learning stages of C# and your question is a little confusing to me. Are you referring to the equivalent of something like the conditional IIf in Visual Basic? Is so I think the proper syntax in C# is:

o = (cond1 = cond2? truevalue : falsevalue);

If I'm wrong I'm sorry. And hopefully I'll learn something in the process. Are you having an easy time learning C#?


Thread source:: http://www.webmasterworld.com/microsoft_asp_net/3403812.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com