What the fuck ?!!
Это у нас на работе такой код.
protected bool _IsDate (string strDate)
{
try
{
// Trap for the / in a date string. Reuters sends it that way
int intTrapped = 0;
string _strSeparator = "/";
intTrapped = strDate.IndexOf(_strSeparator);
if (intTrapped <=0)
{
return false;
}
return true;
}
catch
{
return false;
}
}
Это у нас на работе такой код.
no subject
Date: 2007-06-28 09:13 pm (UTC)if (a == TRUE) { some action } else { // на всякий случай if (a<>FALSE) throw exception; another action }И подпись: "Какой ещё нафиг всякий случай?!"
no subject
Date: 2007-06-29 01:50 am (UTC)where a standard Boolean has two possible values, true and false, an OracleBoolean structure has three possible values, True, False, or Null.