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 there's no input data, then args.Length is equal to 0, but not null. If there's any input data, then agrs.Length is equal to count of input arguments. In conclusion, args can't be null, but length can be zero.
PS check for null first always