System.Xml.Serialization.XmlSerializationWriter.CreateMismatchChoiceException C# (CSharp) Method

CreateMismatchChoiceException() protected method

protected CreateMismatchChoiceException ( string value, string elementName, string enumValue ) : Exception
value string
elementName string
enumValue string
return System.Exception
        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));
        }