There is no way to override the =
behavior in C#. If IntEx
is a class
type then assignment will always cause the LHS to refer to the same value as the RHS.
This can be solved to a degree by inserting a struct
into the equation. In struct
assignment are fields are copied memberwise between the LHS
and RHS
. It still can't be customized but does ensure some separation of the values