Is there a good way to convert strings like "xlSum", "xlAverage" and "xlCount" to the value that they have in Microsoft.Office.Interop.Excel.XlConsolidationFunction?
I think the reflection will be slow (if possible). There are about 10 of these constant values. I tried, if possible, to avoid the large switch statement.
source
share