Ask a questionAsk a question
 

AnswerPassing data with MEF question

  • Monday, October 26, 2009 9:08 PMsaxisa Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    If I am using MEF, what is the correct way to pass data between assemblies?  For example, in my Application assembly, I pull a string array of data from a 3rd party UI package.  I need to then pass this string array to other classes in other assemblies.

    I have been focused mostly on using methods to pass data around, but there doesnt seem to be any way to implement a 'GetDataArray()' method (with no parameters) in the App assembly, and compose it against a method in a different assembly.  At least I havent succeeded in composition.

    But usually when I run into these kinds of problems, it means Im taking the wrong approach.  Is there, then a more correct way to pass data between assemblies?  A service perhaps?  Not very clear on how to implement something like this so any hints are appreciated!

Answers

All Replies