if(products.Length < 0) {
foreach (var p in products)
{
//...
}
}
bool b = connection.isConnected() == true ? true : false;
My first internship presented me with this.
//this is a commit!!
trans.Commit();
It doesn't look like it was there because of some changes - someone simply wanted to be double sure he will see the commit there, I guess..
string random = "1";
return IsActive == true ? true : false;
string str = Console.ReadLine();
string len = 0;
for(int i = 0; i < str.Length; i++)
{
len++;
}
Let's get string length :| Dummy
public bool IsTrue(bool value) {
return value.ToString().length() == 4;
}
protected Int32 Sum(int one, int two)
{
int result;
int tmp;
tmp = one + two;
result = tmp;
return result;
}
Jesus.