Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How should I code this?
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 3.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01398722
Message ID:
01399067
Views:
60
>>Or just
dtOrder = biz.Find((orderNo == String.Empty) ?  (int?) null :  Convert.ToInt32(orderNo), this.dtgStartDate.Value, this.dtgEndDate.Value);
>
>I'm just not a fan of the syntax. I've tried but I just can't read it. I'd usually use TryParse but since she needed a null when it was empty there wasn't much advantage.

I posted a TryParse() version for Naomi that will do that. I've no problem with the syntax. I guess it's one of those 'the more you use it the easier it is to parse' things....
Best,
Viv
Previous
Reply
Map
View

Click here to load this message in the networking platform