如何将带有加引号的字符串列表加入字典?
我有一个像这样的列表:
new List<String> { "alex", "liza", "harry" }
我想创建一个像这样的字典
new Dictionary<Guid, String> {
{
"97085fe7-4717-4b70-95aa-80be9b1bfb47",
"alex"
},
{
"f88a41c2-27ac-47c5-a967-a4cdc2c6171c",
"liza"
},
{
"2a6adaac-23b4-4d6e-9fb4-610d4c14e231",
"harry"
}
}
如何zip
{em>随机 Guids列表以及字符串列表?
答案 0 :(得分:2)
您可以像这样使用Bearer
:
.ToDictionary
答案 1 :(得分:1)
尝试以下操作:
<div class="item">
<div class="item-header">
<div class="title">hello</div>
<div class="item-header-right">hello</div>
</div>
<br><br><br><br><br><br><br><br><br><br><br><br>
</div>
<div class="item">
<div class="item-header">
<div class="title">hello</div>
<div class="item-header-right-placeholder"></div>
</div>
<br><br><br><br><br><br><br><br><br><br><br><br>
</div>
<div class="item">
<div class="item-header">
<div class="title">hello</div>
<div class="item-header-right-placeholder"></div>
</div>
<br><br><br><br><br><br><br><br><br><br><br><br>
</div>
<div class="item">
<div class="item-header">
<div class="title">hello</div>
<div class="item-header-right-placeholder"></div>
</div>
<br><br><br><br><br><br><br><br><br><br><br><br>
</div>
<div class="item">
<div class="item-header">
<div class="title">hello</div>
<div class="item-header-right-placeholder"></div>
</div>
<br><br><br><br><br><br><br><br><br><br><br><br>
</div>