internal Transtation(string key, LocalizationTypes type) { Type = type; Dictionary = new Dictionary { Key = key }; }
internal static void AddKey(this IList <Transtation> transtations, string key, LocalizationTypes type) { if (string.IsNullOrWhiteSpace(key)) { throw new ArgumentNullException("Key", "TranslationProfile.cs error=> key is null or empty"); } if (!transtations.HasKey(key)) { transtations.Add(new Transtation(key, type)); } }