Search code examples
c#portable-class-library

pcl needs specific implementation of a class (in platform specific project)


I got the following situation:

In a pcl I have an interface IFoo The pcl itself does not contain an implementation of the interface. The class (Foo) is located in another project with a specific implementation.

However the pcl does need to create an instance of a class with the interface.

How do I best go about this? Or where can I find some example of how this is done.


Solution

  • Joshua Shearer's provided the answer in his comment.