Sharp C

Sharp C

  • NA
  • 11
  • 1.3k

Poco or expandoobject or dictionary for return result

Oct 14 2019 12:25 AM
In my project, I have a win form project for UI, a class library called models which include all my poco. In the winform project, I m having a mef import which expecting 3rd party plugins to export "function List < Product >> GetProducts " I my common library, the Product class contain about 200 properties, but not all properties can be provided by 3rd party plugins, some if them may only fullfil 20% of properties when call Get Products, in this case, should my GetProducts function return the poco with 200 properties, or should I use dictionary or expandoobject as return type so that 3rd party plugins can provide only info they have?