Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Use of question mark in parameters
Message
De
09/11/2011 11:58:15
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
 
 
À
09/11/2011 11:24:33
John Baird
Coatesville, Pennsylvanie, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01528240
Message ID:
01528508
Vues:
39
>>>Or make an Extension Method so the usage is more fluent:
>>>
>>>
>>>   if (!tcValue.IsNullOrEmpty())
>>>   {
>>>       lcValue = tcValue;
>>>   }
>>>

>>
>>I like that Mike ... don't know why I didn't think of making that an Extension method! Thanks!
>>
>>~~Bonnie
>>
>
>
>I agree ... I also have extension methods for IsNotNullOrEmpty, just so I don't have to use the "!" operator which I sometimes miss when scanning code...

Ah, good idea.

I have a library of extension methods I'm going to throw out on github sometime. Everybody feel free to suggest others once it's up.
Very fitting: http://xkcd.com/386/
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform