Как я могу преобразовать этот класс C++ в класс C#?
Мне нужно для школьного проекта сделать poin-класс. Я больше работаю в C++. Я начал изучать c# три недели назад и не понимал разницы между классами C# и C++.
Что я уже пробовал:
class point{ public: int x; int y; point() : x(0), y (0) { } point( int x, int y ){ this->x = x; this->y = y; } point( const point& from ){ this->x = from.x; this->y = from.y; } point& operator = ( const point& from ){ this->x = from.x; this->y = from.y; return *this; } bool operator == ( const point& from ){ return ((this->x == from.x ) && (this->y == from.y )); } ~point() {} };