protected Exception CreateMismatchChoiceException(string value, string elementName, string enumValue) { // Value of {0} mismatches the type of {1}, you need to set it to {2}. return new InvalidOperationException(SR.Format(SR.XmlChoiceMismatchChoiceException, elementName, value, enumValue)); }