I have written class library in c# like this (simplified):
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;
}
}
}
In Excel in VBA can create instance of class CPoint like this:
Private Sub TestDotNetCall()
Dim pt As New CPoint
End Sub
How can I call method 'GetSomePoints'? And how can I access to the items of the List in VBA?