コード例 #1
0
 internal Transtation(string key, LocalizationTypes type)
 {
     Type       = type;
     Dictionary = new Dictionary {
         Key = key
     };
 }
コード例 #2
0
        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));
            }
        }