public TmphResources GetResources(string filePath) { TmphResources resources = new TmphResources(); if (File.Exists(filePath)) { resources = ResourcesSerializer.DeSerialize(filePath); resources.createIndex(); } return resources; }