像VC中:CArray<CPoint,CPoint> line_Point;就可以了。在C#中怎么的到这种效果呢?谢谢

解决方案 »

  1.   

    Array不行吗?
    List具体怎么定义一个对象?
    List<Point> mylist;就行了吗?
      

  2.   

    正如你所愿List<Point> mylist = new List<Point>();
    mylist.Add(new Point(0, 0));
    mylist.Add(new Point(0, 1));
    mylist.Add(new Point(0, 2));
    Text = mylist[2].ToString(); // 0, 2
      

  3.   

    array存储point类型的数据
    --------------
    ArrayList  myList = new ArrayList();
    myList.Add(new Point(x,y));
      

  4.   

    List<CPoint,CPoint> list = new List<CPoint,CPoint>;
    list.Add(....
      

  5.   

    还有C#中函数传递的参数可以是一个List吗?传递是引用好还是直接是值好!?
      

  6.   

    可以,是引用private void myfunc(List<Point> yourlist)
    {
        yourlist.Add(new Point(123, 456));
    }private void button1_Click(object sender, EventArgs e)
    {
        List<Point> mylist = new List<Point>();
        myfunc(mylist);
        Text = mylist[0].ToString(); // 123, 456
    }
      

  7.   

    楼上
    private void myfunc(List<Point> yourlist)
    {
        yourlist.Add(new Point(123, 456));
    }怎么有问题!??
      

  8.   

    Point[] points = new Point[100];
    points就是一个array类型