P
Piotr Bartczak
I've started learning C# (after C++) and I found that
there is no way to make an object constant. In C++ there
is a const modifier which allows me to define an object
which will not change after initialization. In C# it is
impossible (as far as I know). My question is: Why? In
C++ checking for changes to const objects is being done
during compilation. I don't see any reason why can't they
do the same in C#. Does anybody know??
there is no way to make an object constant. In C++ there
is a const modifier which allows me to define an object
which will not change after initialization. In C# it is
impossible (as far as I know). My question is: Why? In
C++ checking for changes to const objects is being done
during compilation. I don't see any reason why can't they
do the same in C#. Does anybody know??