日期:2014-05-18  浏览次数:20715 次

一个基础问题,帮忙解答
Dictionary<string, 实体> dic = new Dictionary<string, 实体>();

请问这个实体是如何定义的,请给出例子及如何调用,谢谢。不好意思,基础没学好

------解决方案--------------------
C# code

Dictionary<string, object> dic = new Dictionary<string, object>();
Dictionary<string, string> dic = new Dictionary<string, string>();
Dictionary<string, int> dic = new Dictionary<string, int>();
class aa
{
string bb;
int cc;
}
Dictionary<string, aa> dic = new Dictionary<string, aa>();