1 write to _getSchemaMethod
System.Private.Xml (1)
System\Xml\Serialization\Mappings.cs (1)
1059
_getSchemaMethod
= getSchemaMethod;
15 references to _getSchemaMethod
System.Private.Xml (15)
System\Xml\Serialization\Mappings.cs (15)
1094
if (
_getSchemaMethod
== null)
1096
if (_needSchema && typeof(XmlSchemaType).IsAssignableFrom(
_getSchemaMethod
.ReturnType))
1186
if (
_getSchemaMethod
== null)
1188
if (typeof(XmlSchemaType).IsAssignableFrom(
_getSchemaMethod
.ReturnType))
1241
throw new InvalidOperationException(SR.Format(SR.XmlSerializableRootDupName,
_getSchemaMethod
!.DeclaringType!.FullName, e.Name, elementNs));
1274
if (
_getSchemaMethod
!= null)
1278
object? typeInfo =
_getSchemaMethod
.Invoke(null, new object[] { _schemas });
1283
if (typeof(XmlSchemaType).IsAssignableFrom(
_getSchemaMethod
.ReturnType))
1289
else if (typeof(XmlQualifiedName).IsAssignableFrom(
_getSchemaMethod
.ReturnType))
1294
throw new InvalidOperationException(SR.Format(SR.XmlGetSchemaEmptyTypeName, _type!.FullName,
_getSchemaMethod
.Name));
1299
throw new InvalidOperationException(SR.Format(SR.XmlGetSchemaMethodReturnType, _type!.Name,
_getSchemaMethod
.Name, nameof(XmlSchemaProviderAttribute), typeof(XmlQualifiedName).FullName));
1327
throw new InvalidOperationException(SR.Format(SR.XmlGetSchemaInclude, _xsiType.Namespace,
_getSchemaMethod
.DeclaringType!.FullName,
_getSchemaMethod
.Name));
1337
throw new InvalidOperationException(SR.Format(SR.XmlGetSchemaTypeMissing,
_getSchemaMethod
.DeclaringType!.FullName,
_getSchemaMethod
.Name, _xsiType.Name, _xsiType.Namespace));