/// <summary> /// /// </summary> /// <param name="synonymInfo"></param> public static void AddSynonym(SynonymInfo synonymInfo) { if (synonymInfo != null) { Synonyms.Add(synonymInfo); } }
/// <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); }
/// <summary> /// /// </summary> /// <param name="synonymInfo"></param> /// <param name="value"></param> public void SetValue(SynonymInfo synonymInfo, string value) { PropertyInfo.SetValue(synonymInfo, value); }