I\'ve got the following and was wondering if the initial test is overkill:
static void Main(string[] args) { if (args.Length == 0 || args == null) {
if (args == null) { Console.WriteLine("args is null"); // Check for null array } else { if (args.Length == 0) { //do X } else { //do Y } }