Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Use of question mark in parameters
Message
From
09/11/2011 11:58:15
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
 
 
To
09/11/2011 11:24:33
John Baird
Coatesville, Pennsylvania, United States
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01528240
Message ID:
01528508
Views:
42
>>>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/
Previous
Reply
Map
View

Click here to load this message in the networking platform