什么是C#集合类型cmapstringtostring在C#中相等 [英] What is C++ collection type cmapstringtostring equal in C#
本文介绍了什么是C#集合类型cmapstringtostring在C#中相等的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在c#中移植c ++软件什么是CMapStringToString在c#
提前付款
我的尝试:
iam porting a c++ software in c# what is CMapStringToString equal in c#
Thanks in advance
What I have tried:
CMapStringToString FileExistsMap;
FileExistsMap.SetAt(_T("Abc"),_T("developer"));
FileExistsMap.SetAt(_T("Abc"),_T("developer"));
FileExistsMap.SetAt(_T("Abc"),_T("developer"));
CString foundvalue;
FileExistsMap.Lookup(_T("Abc"),foundvalue);
推荐答案
更正版本:AsCMapStringToString
接受重复的密钥,这可以很容易地实现为List< KeyValuePair< string,string>>
。它也可能是元组
,但在这种情况下,列表将是一个不错的选择。
Corrected version: AsCMapStringToString
accepts duplicate keys, this could easily be implemented as aList<KeyValuePair<string, string>>
. It could also be aTuple
, but in this case, the list would be a fine choice.
这篇关于什么是C#集合类型cmapstringtostring在C#中相等的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文