All the sources codespage 44
C++
July 20, 2014 am31 07:25
#183
public bool IsTrue(bool b)
{
if (b == true)
{
return true;
}
return false;
}
Java
July 19, 2014 pm31 12:54
#132
private int signum(int number) {
int result = 0;
if (number != 0) {
result = number / Math.abs(number);
}
return result;
}
C#
July 19, 2014 am31 04:40
#113
// on the webservice client
Hashtable params = new Hashtable
{
"IsActive", true.ToString();
...
};
service.someMethod(params);
// on the webservice
if (hs["IsActive"].ToString().ToLower().Equals("true"))
{
...
}