Esempio n. 1
0
        public List <T> GetCustomFieldValues <T>(string customFieldName)
        {
            List <T> ret = null;

            var find = _customFields.Where(x => x.Id == customFieldName || x.Name == customFieldName).FirstOrDefault();

            if (find != null)
            {
                ret = new List <T>();
                foreach (string s in find.Values)
                {
                    ret.Add(JHelper.GetValue <T>(s));
                }
            }

            return(ret);
        }
Esempio n. 2
0
 public T GetFromValue <T>()
 {
     return(JHelper.GetValue <T>(ToValue));
 }