My shared library has public const int DefaultBaudRate = 9600; and public static readonly int MaxRetries = 3;. After I changed the baud rate constant to 115200 and deployed only the rebuilt library DLL, the main application kept using 9600, while a change to MaxRetries took effect immediately.
I assumed const and static readonly were two spellings of the same thing. What is the real difference, including plain readonly instance fields, and which one is right for values that may change between releases?




