In C# you can mark fields as readonly. You will get compiler errors if you try to set the value anywhere besides the contructor. I'm not sure if this gives any performance benefit but it makes the code more readable.

Last edited Aug 25, 2007 at 9:02 PM by JeffLeBert, version 1

Comments

No comments yet.