private static string GetDefaultNameForCommandType(Type commandType) { if (commandType == null) { throw new ArgumentNullException("commandType"); } return commandType.Name; } }