Constants and Enum value changes are not applied

  • Thread starter Thread starter Jack Wright
  • Start date Start date
J

Jack Wright

Dear All,
If I change an Enum or a Constant value in a dll and use this
changed dll in a already compiled application of mine then these
changed values are not reflected in the application's instance...
Is there a workaround for this? How can I else send a hot patch? What
are the similar issues related to this type of sending hot patches...

Please help...

TALIA

Many Regards
Jack
 
Jack Wright said:
If I change an Enum or a Constant value in a dll and use this
changed dll in a already compiled application of mine then these
changed values are not reflected in the application's instance...
Indeed.

Is there a workaround for this? How can I else send a hot patch? What
are the similar issues related to this type of sending hot patches...

You shouldn't use const for values which aren't truly constants - use
static readonly values instead. For enums this seems a bit harsh, but
unfortunately it's the way it is.

You basically need to distribute the recompiled application as well as
the dll.
 
Back
Top