// Converts the deserialized string resource object into the cached dictionary private void ConvertToDictionary(StringResourceList stringResources) { try { Value = stringResources.Values.ToDictionary((sr) => sr.Name, (sr) => sr.Value); } catch (ArgumentException ex) { throw new ArgumentException($"Unable to deserialize strings file from '{filePath}'. Make sure there are no duplicate string keys or something.", ex); } }
// Converts the deserialized string resource object into the cached dictionary private void ConvertToDictionary(StringResourceList stringResources) { Value = stringResources.Values.ToDictionary((sr) => sr.Name, (sr) => sr.Value); }