c# - dll custom business logic -


I have a project where some business logic is different from a DLL project, this DLL includes business logic for this software Is a special customer

Now I have a problem that requires a client with different rules to implement the software, I need something that according to the client using the software Application proper DLL loading Is this the same function name in the Dell but different bodies

I am using C # 3.5, is there a way to do this ??

Yes, you can certainly do you can add project branches, implement classes You can change the signature of all sections and class members in the same way, you can re-compile, and your business logic will behave according to your wishes. But , it's not good you will have two separate branches, which have different implementations, for which you sign the Forever . And then you will have another customer, and secondly it will be a nightmare that never ends.

Is it possible that different functionality may be different? You can:

  • Put the configuration in the database or configuration files (probably XML)
  • You can apply and for the locations where the code should be different .
  • Kindof oldschool, but you can implement plug-and-play functionality by using part of the compiled code (you can ignore part about highlighting code) You can easily edit text Can put functionality into files.
  • Designed for this type of thing, check it out.

Comments