Beispiel #1
0
        public string TagValue(Lebi_Language_Tag tag, string lang)
        {
            if (tag == null)
            {
                return("");
            }
            string res  = "";
            Type   type = tag.GetType();

            System.Reflection.PropertyInfo p = type.GetProperty(lang);
            if (p == null)
            {
                return("");
            }
            res = p.GetValue(tag, null).ToString();
            return(res);
        }