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:
01399043
Views:
58
>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.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform