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

◆ GetSchemaTypeName()

XmlQualifiedName System.Runtime.Serialization.XsdDataContractExporter.GetSchemaTypeName ( Type type)
inline

Definition at line 165 of file XsdDataContractExporter.cs.

166 {
167 if (type == null)
168 {
169 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("type"));
170 }
172 DataContract dataContract = DataContract.GetDataContract(type);
174 if (dataContract is XmlDataContract { IsAnonymous: not false })
175 {
176 return XmlQualifiedName.Empty;
177 }
178 return dataContract.StableName;
179 }
static readonly XmlQualifiedName Empty

References System.Xml.XmlQualifiedName.Empty, System.Runtime.Serialization.DataContractSet.EnsureTypeNotGeneric(), System.Runtime.Serialization.DataContract.GetDataContract(), System.Runtime.Serialization.XsdDataContractExporter.GetSurrogatedType(), System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(), and System.type.