标签:style blog io ar color sp on div log
protected IDictionary<string, object> _outputValues = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase); /// <summary> /// 附加参数 /// </summary> public IDictionary<string, object> OutputValues { get { return _outputValues; } } /// <summary> /// 获取返回值的附加参数 /// </summary> /// <param name="key"></param> /// <returns></returns> public TM GetOutputValue<TM>(string key) { TM temp = default(TM); if (!OutputValues.IsNullOrEmpty() && OutputValues.ContainsKey(key)) { temp = (TM)OutputValues[key]; } return temp; } /// <summary> /// 设置返回值的附加参数 /// </summary> /// <param name="key"></param> /// <param name="value"></param> public void SetOutputValue<TM>(string key, TM value) { OutputValues[key] = value; }
标签:style blog io ar color sp on div log
原文地址:http://www.cnblogs.com/aigomayi/p/4112124.html