Beispiel #1
0
        /// <summary>
        /// 取得属性值
        /// </summary>
        /// <param name="obj"></param>
        /// <param name="propertyName"></param>
        private string GetPropertyValue(object obj, string propertyName)
        {
            object result = null;

            result = ObjectUtil.GetPropertyValue(obj, propertyName);

            return(result == null ? String.Empty : result.ToString());
        }
Beispiel #2
0
 public object GetPropertyValue(string propertyName)
 {
     return(ObjectUtil.GetPropertyValue(DataItem, propertyName));
 }