C#有没有不自动排序的键值对容器
1个回答
展开全部
private IDictionary<string, Object> myDictionary;
private IList <string> myKey;
public myDictionary()
{
myDictionary=new Dictionary<string, Object>();
myKey = new List<string>();
}
public void Add(string key, object value)
{
myDictionary.Add(key, value);
myKey.Add(key);
}
private IList <string> myKey;
public myDictionary()
{
myDictionary=new Dictionary<string, Object>();
myKey = new List<string>();
}
public void Add(string key, object value)
{
myDictionary.Add(key, value);
myKey.Add(key);
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询