Allan Muller
Allan Muller

Reputation: 308

Shared code but need different results depending upon which Client executed

I have been asked to work on a solution that has 3 projects. 2 separate clients and 1 common code project. In the common code project (that is shared between the 2 clients) I need to have a method that returns slightly different results depending upon which client is executing.

I could do a partial class to get around this. Is there another way that might be better?

I cannot refactor the solution to separate the projects completely :-(

Upvotes: 1

Views: 50

Answers (1)

Oded
Oded

Reputation: 499212

Pass an extra parameter to this method that tells it how to behave and call it differently from each client.

Upvotes: 3

Related Questions