private void LoadResources() { var tmpFileResources = new HashSet <string>(FileResources); FileResources.Clear(); foreach (var item in tmpFileResources) { Register(item); } var tmpAssemblyResources = new HashSet <AssemblyResource>(AssemblyResources); AssemblyResources.Clear(); foreach (var item in tmpAssemblyResources) { Register(item.BaseResourceName, item.Assembly); } }