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