Search code examples
wpfmvvmarchitectureportable-class-library

Is there a name for the pattern of injecting implementations into a portable class library?


Apologies for the not entirely code related question.

I am in the process of building a WPF application with a View Model Locator pattern. In that I have interfaces to represent functionality not present in portable class libraries.

I then assign those properties concrete values in my application so that they are available for injection to my view models.

My question is, do we have a name for this pattern? It seems a standard enough way to do this but I am never sure what to call it and end up having to explain it every time.


Solution

  • A term Microsoft uses to describe the way one can inject in a PCL concrete implementations of code that cannot be written to directly target a PCL is platform abstraction.

    There are several techniques to achieve this. Here are some useful links: