コード例 #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="synonymInfo"></param>
 public static void AddSynonym(SynonymInfo synonymInfo)
 {
     if (synonymInfo != null)
     {
         Synonyms.Add(synonymInfo);
     }
 }
コード例 #2
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        private static SynonymInfo GetByKey(ResourceManager manager, string key)
        {
            var result = new SynonymInfo(key);

            foreach (var info in PropertyInfos)
            {
                info.SetValue(result, manager.GetString(key, info.CultureInfo));
            }

            return(result);
        }
コード例 #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="synonymInfo"></param>
 /// <param name="value"></param>
 public void SetValue(SynonymInfo synonymInfo, string value)
 {
     PropertyInfo.SetValue(synonymInfo, value);
 }