if(products.Length < 0) {
    foreach (var p in products)
    {
        //...
    }
}
By Anonymous, 2021-07-24 20:56:07
bool b = connection.isConnected() == true ? true : false;

My first internship presented me with this.

By Anonymous, 2017-12-12 09:39:54
//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..

By Vukko, 2016-10-03 15:20:49
string random = "1";
By Anonymous, 2018-01-11 20:23:55

return IsActive == true ? true : false;
By Anonymous, 2018-09-12 18:01:20
string str = Console.ReadLine();
string len = 0;
for(int i = 0; i < str.Length; i++)
{
    len++;
}

Let's get string length :| Dummy

By Manoochehr Mojgani, 2017-12-13 16:47:11
public bool IsTrue(bool value) {
    return value.ToString().length() == 4;
}
By Anonymous, 2018-04-04 15:46:36
#62 C# +300
protected Int32 Sum(int one, int two)
{
    int result;
    int tmp;
    
    tmp = one + two;
    result = tmp;
    return result;
}

Jesus.

By Anonymous, 2016-05-29 17:19:14