1
Answer

Constants methods

ZanettiEsteban

ZanettiEsteban

19y
1.7k
1
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)
Next Recommended Forum