C# Bad Code Examples
Written on August 27, 2010 – 12:28 am | by admin |After the success of PHP Bad Code Examples, I decided to write another one about bad code examples, but this time it’s about C# Enjoy: Example 1. /// <summary> /// Returns current UTC time /// </summary> /// <returns></returns> public static DateTime GetCurrentTimeUtc() { DateTime dt = DateTime.UtcNow; return dt; } Example 2. bool value; if(value.ToString.Length() [...]

