日期:2014-05-18 浏览次数:20982 次
KeyValuePair<int,string> pair = (KeyValuePair<int,string>)obj;
------解决方案--------------------
(KeyValuePair)obj
或者
obj as KeyValuePair
------解决方案--------------------
KeyValuePair<int,string> pair = (KeyValuePair<int,string>)obj;
或者
KeyValuePair<int,string> pair = obj as KeyValuePair<int,string>;
------解决方案--------------------