I want to get the PropertyValue of CustomAtrribute from all Class as String
Here is my Custom Attribute inherited from ExportAttribute
[JIMSExport("StockGroup","Stock")]
This attribute is attached on many class but with different parameters. First Parameter indicates ContractName and Second one say which Module it belongs to.
Now I want to get a dictionary
Dictionary<string, List<string>> moduleDict
with all ModuleName (2nd Parameter) and ContractName (1st Parameter), There can be classes with same module Name, so I need a List of Contract name with that Module Name
I am able to get all the JIMSExport attribute using Reflection but failed to generate the dictionary
var exported = GetTypesWith<JIMSExportAttribute>(false).Select(x => x.GetCustomAttributes(true).First());
Is there any better way of this doing using Caliburn Micro