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:
01399067
Vues:
61
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform