0

これは C# の通常のプロパティとどう違うのですか?

    public new Point3D this[int index]
    {
        get { return base[index]; }
        set
        {
            base[index] = value;
            CollectionModified();
        }
4

3 に答える 3

2

インデクサーです。これは次のように機能します (プロパティを呼び出す必要はありません)。

yourPoints[0] = new Point3D();

Point3D point = yourPoints[0];
于 2013-04-25T12:13:28.110 に答える