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#?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

shimtannyRank #3,312 · 434 pointsPosted Feb 17, 2005, 8:58 AM EST