E
Ernst Sauer
Hello,
Forgive me, if this is a stupid question, but I'm a new C# member.
C++ hase a this[] operator but I'm missing it in C#
How would you solve a problem like the following:
class CNode
{
public double x;
….
public mid();
{ i = ???
x=(this[i-1].x + this[i+1].x)/2;
}
}
//
CNode[] node = new Cnode[10];
…
Node[5].mid();
Thanks
Forgive me, if this is a stupid question, but I'm a new C# member.
C++ hase a this[] operator but I'm missing it in C#
How would you solve a problem like the following:
class CNode
{
public double x;
….
public mid();
{ i = ???
x=(this[i-1].x + this[i+1].x)/2;
}
}
//
CNode[] node = new Cnode[10];
…
Node[5].mid();
Thanks