OptionSetValue behaving like an integer
问题 I recently experienced an OptionSetValue behaving like an integer in a method of my plugin. Previously, and with all other OptionSetValues, to retrieve the integer value, I have used the pattern: localIntegerVariable = (new_myEntity.GetAttributeValue<OptionSetValue>("new_myOptionSetAttribute")).Value; That no longer works in the one of the methods of the plugin. If i treat it like an integer, it works. localIntegerVariable = (new_myEntity.GetAttributeValue<int>("new_myOptionSetAttribute"));