Hello,
I often use MEF in my applications but I cannot figure out if there is some way to know if a particular type contains composition members. I could do it easily by retrieving member attributes using reflection but I was wondering if there was already a helper class or something like this which could do this work for me.
At least the MEF programming guide does not metion anything about that.
Thanks.
Edit:
My actual scenario is that in a MVVM WPF application and I created a base Window class which automatically compose on construction, but as not all implementation are using MEF at their current state I would like to avoid composition if these implementations does not define any composable members. Maybe composing a class with no composable members does not imply a big CPU time. In fact I just want to be clean.