How do I refactor these two C# functions to abstrtact their logic from the specific class properties
- by ObligatoryMoniker
I have two functions whose underlying logic is the same but in one case it sets one property value on a class and in another case it sets a different one. How can I rewrite the following two functions to abstract away as much of the algorithm as possible so that I can make changes in logic in a single place?
SetBillingAddress
private void…