Quantcast
Channel: Managed Extensibility Framework
Viewing all articles
Browse latest Browse all 265

New Post: Preserve Multiple Metadata Order

$
0
0
I have the following exported function:
[Export(typeof(System.Func<object>))]
[ExportMetadata("Name", "Name 1", IsMultiple = true)]
[ExportMetadata("Name", "Name 2", IsMultiple = true)]
[ExportMetadata("Name", "Name 3", IsMultiple = true)]
public object TestFunction() {return null;}
Problem is, when the function is imported, the order of the metadata IDictionary<string,object[]> is not preserved according to the order they are declared, which is important in my application.

Can anyone help with a solution or workaround?

Kind regards

Bright

Viewing all articles
Browse latest Browse all 265

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>