调用EXCEL VBA中的C#DLL – 如何访问列表项?

我已经写在C#类库这样(简体):

namespace DotNetLibrary { public class CPoint { public int x; public int y; public CPoint(int x, int y) { this.x = x; this.y = y; } public List<CPoint> GetSomePoints() { List<CPoint> result = new List<CPoint>(); for (int i = 0; i < 100; i++) { for (int j = 0; j < 100; j++) { result.Add(new CPoint(i, j)); } } return result; } } } 

在VBA中的Excel可以像这样创build类CPoint的实例:

 Private Sub TestDotNetCall() Dim pt As New CPoint End Sub 

我怎样才能调用方法“GetSomePoints”? 我怎样才能访问VBA中的列表项?