获得 ISaveItem 的 string值

2017-02-19 12:33:37  访问(1581) 赞(0) 踩(0)


        /// <summary>
        /// 获得 ISaveItem 的 string值
        /// </summary>
        /// <param name="_entityFieldInfoName"></param>
        /// <returns></returns>
        public string GetISaveItemStrValueByName(string _entityFieldInfoName)
        {
            string _name = _entityFieldInfoName.ToLower();

            if (!m_DictionaryISaveItem.ContainsKey(_name))
            {
                throw new Exception
                    (
                        "方法:"
                        +
                        MethodBase.GetCurrentMethod().ReflectedType.FullName
                        + " "
                        +
                        MethodBase.GetCurrentMethod().ToString()
                        +
                        " 发生异常:" + _entityFieldInfoName + "没有设置保存值。");

            }

            object oValue = m_DictionaryISaveItem[_name].theValue;

            if (oValue == null)
                return null;

            return oValue.ToString();
        }


标签:获得 ISaveItem 的 string值 

上一条:

下一条:


 

相关评论

评论加载中……
 

发表评论

类型:
内容:
  (Alt+Enter)