Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How should I code this?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01398722
Message ID:
01399043
Vues:
59
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform