Convert if/else to swtich case to fix MSVC2013 compile in dat dumper