by Marius Gheorghe
5. June 2007 19:27
A interesting thing about constants : when you compile a assembly (let's called it A.dll) which refers a constant defined in another assembly (B.dll) , the value of the constant is embedded at compile time and not a "reference" to it. So, later, if you update the value of the constant(in assembly B.dll) it won't be enought to replace the assembly to get the updated value, you will also have to the A.dll to get the updated value. It is a normal thing (after all you can't pass constants by reference) but i was still a little surprised when it happend to me.