Constants methods

Feb 17 2005 12:40 PM
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#?

Answers (1)