1 write to _getSchemaMethod
System.Private.Xml (1)
System\Xml\Serialization\Mappings.cs (1)
1084
_getSchemaMethod
= getSchemaMethod;
15 references to _getSchemaMethod
System.Private.Xml (15)
System\Xml\Serialization\Mappings.cs (15)
1119
if (
_getSchemaMethod
== null)
1121
if (_needSchema && typeof(XmlSchemaType).IsAssignableFrom(
_getSchemaMethod
.ReturnType))
1211
if (
_getSchemaMethod
== null)
1213
if (typeof(XmlSchemaType).IsAssignableFrom(
_getSchemaMethod
.ReturnType))
1266
throw new InvalidOperationException(SR.Format(SR.XmlSerializableRootDupName,
_getSchemaMethod
!.DeclaringType!.FullName, e.Name, elementNs));
1299
if (
_getSchemaMethod
!= null)
1303
object? typeInfo =
_getSchemaMethod
.Invoke(null, new object[] { _schemas });
1308
if (typeof(XmlSchemaType).IsAssignableFrom(
_getSchemaMethod
.ReturnType))
1314
else if (typeof(XmlQualifiedName).IsAssignableFrom(
_getSchemaMethod
.ReturnType))
1319
throw new InvalidOperationException(SR.Format(SR.XmlGetSchemaEmptyTypeName, _type!.FullName,
_getSchemaMethod
.Name));
1324
throw new InvalidOperationException(SR.Format(SR.XmlGetSchemaMethodReturnType, _type!.Name,
_getSchemaMethod
.Name, nameof(XmlSchemaProviderAttribute), typeof(XmlQualifiedName).FullName));
1352
throw new InvalidOperationException(SR.Format(SR.XmlGetSchemaInclude, _xsiType.Namespace,
_getSchemaMethod
.DeclaringType!.FullName,
_getSchemaMethod
.Name));
1362
throw new InvalidOperationException(SR.Format(SR.XmlGetSchemaTypeMissing,
_getSchemaMethod
.DeclaringType!.FullName,
_getSchemaMethod
.Name, _xsiType.Name, _xsiType.Namespace));