Z
Zoran Stipanicev
Hi!
Does anyone knows how to get the same functionality like in
native c++ code shown below, in cli. To be more precise I don't
know what to write in place of question marks in cli code below.
Any ideas?
Thx!
//native c++
class MyClass
{
private:
int **conteiner_;
//...
int& Bridge_(int r, int c)
{
return conteiner_[r][c];
}
public:
//...
int& operator()(int r, int c)
{
return Bridge_(r, c);
}
};
//c++/cli
ref class MyClass
{
private:
array<int,2>^ conteiner_;
//...
??? Bridge_(int r, int c)
{
return conteiner_[r, c];
}
public:
//...
??? operator() (int r, int c)
{
return Bridge_(r, c);
}
};
main()
{
MyClass mc(...);
int i = mc(1,1);
}
P.S. I don't wont use property in cli, I need operator().
Best regards,
Zoran Stipanicev.
Does anyone knows how to get the same functionality like in
native c++ code shown below, in cli. To be more precise I don't
know what to write in place of question marks in cli code below.
Any ideas?
Thx!
//native c++
class MyClass
{
private:
int **conteiner_;
//...
int& Bridge_(int r, int c)
{
return conteiner_[r][c];
}
public:
//...
int& operator()(int r, int c)
{
return Bridge_(r, c);
}
};
//c++/cli
ref class MyClass
{
private:
array<int,2>^ conteiner_;
//...
??? Bridge_(int r, int c)
{
return conteiner_[r, c];
}
public:
//...
??? operator() (int r, int c)
{
return Bridge_(r, c);
}
};
main()
{
MyClass mc(...);
int i = mc(1,1);
}
P.S. I don't wont use property in cli, I need operator().
Best regards,
Zoran Stipanicev.