System.Xml.Serialization.XmlReflectionImporter.ValidationCallbackWithErrorCode C# (CSharp) Method

ValidationCallbackWithErrorCode() static private method

static private ValidationCallbackWithErrorCode ( object sender, ValidationEventArgs args ) : void
sender object
args System.Xml.Schema.ValidationEventArgs
return void
        internal static void ValidationCallbackWithErrorCode(object sender, ValidationEventArgs args)
        {
            // CONSIDER: need the real type name
            if (args.Severity == XmlSeverityType.Error)
                throw new InvalidOperationException(SR.Format(SR.XmlSerializableSchemaError, typeof(IXmlSerializable).Name, args.Message));
        }