Fishy wrote:
Otis wrote:
Make sure you export readonly statics, not const statics.
Excuse my ignorance , but what do you mean by that?
Thanks,
Fishy
If you do:
public const string Foo = "lala";
in assembly A and you use Foo in assembly B, the actual value 'lala' is compiled in assembly B. This means that if you change A, B will still use 'lala'.
if you do:
public static readonly string Foo = "lala";
for B it won't make a difference, but now, a reference to A.Foo is compiled, not 'lala'. This means that if A changes, B will pick up the change.