private static void LoadPlotData(CSVLoader loader) { int rows = loader.RowCount(); var factory = DataReader <PlotData> .Build(loader); for (int i = 0; i < rows; ++i) { PlotData info = factory.Parse(loader, i); var value = new Dictionary <string, string>(); plotData[info.Name] = value; if (!string.IsNullOrEmpty(info.Obj1)) { value[info.Obj1] = info.Material1; } if (!string.IsNullOrEmpty(info.Obj2)) { value[info.Obj2] = info.Material2; } if (!string.IsNullOrEmpty(info.Obj3)) { value[info.Obj3] = info.Material3; } if (!string.IsNullOrEmpty(info.Obj4)) { value[info.Obj4] = info.Material4; } if (!string.IsNullOrEmpty(info.Obj5)) { value[info.Obj5] = info.Material5; } } }