Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (String.IsNullOrEmpty(text1) | String.IsNullOrEmpty(text2) | String.IsNullOrEmpty(text3))
- {
- //...
- }
- if (String.IsNullOrEmpty(text1) || String.IsNullOrEmpty(text2) || String.IsNullOrEmpty(text3))
- {
- //...
- }
- bool nullorempty = str == null || str.Length == 0;
- bool hasBuzzed = checkMakeBuzz();
- bool isFrobbed = checkMakeFrob();
- bool result = hasBuzzed || isFrobbed;
- bool isPasswordValid = true;
- isPasswordValid &= isEightCharacters(password);
- isPasswordValid &= containsNumeric(password);
- isPasswordValid &= containsBothUppercaseAndLowercase(password);
- return isPasswordValid;
- return (isEightCharacters(password) &&
- containsNumberic(password) &&
- containsBothUppercaseAndLowercase(password));
- if (false & somethingThatUpdatesTheDatabase()) { /* ... */ }
Add Comment
Please, Sign In to add comment