Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetXmlTypeInfo()

static void System.Runtime.Serialization.SchemaExporter.GetXmlTypeInfo ( Type type,
out XmlQualifiedName stableName,
out XmlSchemaType xsdType,
out bool hasRoot )
inlinestaticpackage

Definition at line 765 of file SchemaExporter.cs.

766 {
768 {
772 if (stableName.Name == null || stableName.Name.Length == 0)
773 {
774 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(System.SR.Format(System.SR.InvalidXmlDataContractName, DataContract.GetClrTypeFullName(type))));
775 }
776 }
777 }
static bool InvokeSchemaProviderMethod(Type clrType, XmlSchemaSet schemas, out XmlQualifiedName stableName, out XmlSchemaType xsdType, out bool hasRoot)
static bool IsSpecialXmlType(Type type, [NotNullWhen(true)] out XmlQualifiedName typeName, [NotNullWhen(true)] out XmlSchemaType xsdType, out bool hasRoot)
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string InvalidXmlDataContractName
Definition SR.cs:164
Definition SR.cs:7

References System.Runtime.Serialization.Dictionary, System.SR.Format(), System.Runtime.Serialization.DataContract.GetClrTypeFullName(), System.SR.InvalidXmlDataContractName, System.Runtime.Serialization.SchemaExporter.InvokeSchemaProviderMethod(), System.Runtime.Serialization.SchemaExporter.IsSpecialXmlType(), System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(), and System.type.

Referenced by System.Runtime.Serialization.XmlDataContract.XmlDataContractCriticalHelper.XmlDataContractCriticalHelper(), and System.Runtime.Serialization.DataContract.TryGetBuiltInXmlAndArrayTypeStableName().