Constants methods
In C++ when I need to define a method that not modify variables of the objet I proceed in the following way:
class Foo
{
void m1() const
{
// ...
}
};
I cannot do the same in C#. Does anybody know how can I specify constant methods in C#?
shimtannyPosted Feb 17, 2005, 1:58 PM