1 write to getSchemaMethod
System.Xml (1)
System\Xml\Serialization\Mappings.cs (1)
951
this.
getSchemaMethod
= getSchemaMethod;
15 references to getSchemaMethod
System.Xml (15)
System\Xml\Serialization\Mappings.cs (15)
980
if (
getSchemaMethod
== null)
982
if (needSchema && typeof(XmlSchemaType).IsAssignableFrom(
getSchemaMethod
.ReturnType))
1052
if (
getSchemaMethod
== null)
1054
if (typeof(XmlSchemaType).IsAssignableFrom(
getSchemaMethod
.ReturnType))
1098
throw new InvalidOperationException(Res.GetString(Res.XmlSerializableRootDupName,
getSchemaMethod
.DeclaringType.FullName, e.Name, elementNs));
1128
if (
getSchemaMethod
!= null) {
1132
object typeInfo =
getSchemaMethod
.Invoke(null, new object[] { schemas });
1136
if (typeof(XmlSchemaType).IsAssignableFrom(
getSchemaMethod
.ReturnType)) {
1141
else if (typeof(XmlQualifiedName).IsAssignableFrom(
getSchemaMethod
.ReturnType)) {
1144
throw new InvalidOperationException(Res.GetString(Res.XmlGetSchemaEmptyTypeName, type.FullName,
getSchemaMethod
.Name));
1148
throw new InvalidOperationException(Res.GetString(Res.XmlGetSchemaMethodReturnType, type.Name,
getSchemaMethod
.Name, typeof(XmlSchemaProviderAttribute).Name, typeof(XmlQualifiedName).FullName));
1170
throw new InvalidOperationException(Res.GetString(Res.XmlGetSchemaInclude, xsiType.Namespace,
getSchemaMethod
.DeclaringType.FullName,
getSchemaMethod
.Name));
1178
throw new InvalidOperationException(Res.GetString(Res.XmlGetSchemaTypeMissing,
getSchemaMethod
.DeclaringType.FullName,
getSchemaMethod
.Name, xsiType.Name, xsiType.Namespace));