private void VerifyIntegrity() { if (BaseTranslation == null) { throw new InvalidDataException("Could not find file for BaseLocale: " + Translation <Locale, Key> .GetFile(Folder, BaseLocale)); } if (DefaultTranslation == null) { throw new InvalidDataException("Could not find file for DefaultLocale: " + Translation <Locale, Key> .GetFile(Folder, DefaultLocale)); } for (int i = 0; i < Translations.Length; i++) { var trans = Translations[i]; if (trans == null || trans.Locale.ToInt32(null) != i) { Translations[i] = DefaultTranslation; } } }