[英]c# - Why can't my Dictionary class see the ToArray() method?
[英]C# Dictionary doesn't see my List
字典的聲明需要一個類型,而不是一個特定的變量:
Dictionary<uint, List<Pair<uint, Vector2D>>> points;
我已經更新了我使用 IdXPointList 類型的方式,方法是在類的頂部將其定義為用戶定義類型。
using IdxPointList= System.Collections.Generic.List<_3D.Helpers.slicingHelper.Pair<uint, MIRIA.Utility.Vector2D>>;
public class PointHash
{
struct Impl
{
Dictionary<uint, IdxPointList> points;
}
Impl impl;
public PointHash()
{
impl = new Impl();
}
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.