これは C# の通常のプロパティとどう違うのですか?
public new Point3D this[int index]
{
get { return base[index]; }
set
{
base[index] = value;
CollectionModified();
}
これは C# の通常のプロパティとどう違うのですか?
public new Point3D this[int index]
{
get { return base[index]; }
set
{
base[index] = value;
CollectionModified();
}
インデクサーです。これは次のように機能します (プロパティを呼び出す必要はありません)。
yourPoints[0] = new Point3D();
Point3D point = yourPoints[0];