1 write to _getSchemaMethod
System.Private.Xml (1)
System\Xml\Serialization\Mappings.cs (1)
1098
_getSchemaMethod
= getSchemaMethod;
15 references to _getSchemaMethod
System.Private.Xml (15)
System\Xml\Serialization\Mappings.cs (15)
1133
if (
_getSchemaMethod
== null)
1135
if (_needSchema && typeof(XmlSchemaType).IsAssignableFrom(
_getSchemaMethod
.ReturnType))
1225
if (
_getSchemaMethod
== null)
1227
if (typeof(XmlSchemaType).IsAssignableFrom(
_getSchemaMethod
.ReturnType))
1280
throw new InvalidOperationException(SR.Format(SR.XmlSerializableRootDupName,
_getSchemaMethod
!.DeclaringType!.FullName, e.Name, elementNs));
1313
if (
_getSchemaMethod
!= null)
1317
object? typeInfo =
_getSchemaMethod
.Invoke(null, new object[] { _schemas });
1322
if (typeof(XmlSchemaType).IsAssignableFrom(
_getSchemaMethod
.ReturnType))
1328
else if (typeof(XmlQualifiedName).IsAssignableFrom(
_getSchemaMethod
.ReturnType))
1333
throw new InvalidOperationException(SR.Format(SR.XmlGetSchemaEmptyTypeName, _type!.FullName,
_getSchemaMethod
.Name));
1338
throw new InvalidOperationException(SR.Format(SR.XmlGetSchemaMethodReturnType, _type!.Name,
_getSchemaMethod
.Name, nameof(XmlSchemaProviderAttribute), typeof(XmlQualifiedName).FullName));
1366
throw new InvalidOperationException(SR.Format(SR.XmlGetSchemaInclude, _xsiType.Namespace,
_getSchemaMethod
.DeclaringType!.FullName,
_getSchemaMethod
.Name));
1376
throw new InvalidOperationException(SR.Format(SR.XmlGetSchemaTypeMissing,
_getSchemaMethod
.DeclaringType!.FullName,
_getSchemaMethod
.Name, _xsiType.Name, _xsiType.Namespace));