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

◆ GetSimpleType()

XmlSchemaSimpleType System.Xml.Schema.SchemaCollectionCompiler.GetSimpleType ( XmlQualifiedName name)
inlineprivate

Definition at line 2355 of file SchemaCollectionCompiler.cs.

2356 {
2357 XmlSchemaSimpleType xmlSchemaSimpleType = _schema.SchemaTypes[name] as XmlSchemaSimpleType;
2358 if (xmlSchemaSimpleType != null)
2359 {
2361 }
2362 else
2363 {
2364 xmlSchemaSimpleType = DatatypeImplementation.GetSimpleTypeFromXsdType(name);
2365 if (xmlSchemaSimpleType != null)
2366 {
2367 if (xmlSchemaSimpleType.TypeCode == XmlTypeCode.NormalizedString)
2368 {
2369 xmlSchemaSimpleType = DatatypeImplementation.GetNormalizedStringTypeV1Compat();
2370 }
2371 else if (xmlSchemaSimpleType.TypeCode == XmlTypeCode.Token)
2372 {
2373 xmlSchemaSimpleType = DatatypeImplementation.GetTokenTypeV1Compat();
2374 }
2375 }
2376 }
2377 return xmlSchemaSimpleType;
2378 }
void CompileSimpleType(XmlSchemaSimpleType simpleType)
XmlSchemaObjectTable SchemaTypes
Definition XmlSchema.cs:256

References System.Xml.Schema.SchemaCollectionCompiler._schema, System.Xml.Schema.SchemaCollectionCompiler.CompileSimpleType(), System.Xml.Dictionary, System.Xml.Schema.DatatypeImplementation.GetNormalizedStringTypeV1Compat(), System.Xml.Schema.DatatypeImplementation.GetSimpleTypeFromXsdType(), System.Xml.Schema.DatatypeImplementation.GetTokenTypeV1Compat(), and System.Xml.Schema.XmlSchema.SchemaTypes.

Referenced by System.Xml.Schema.SchemaCollectionCompiler.CompileAttribute(), System.Xml.Schema.SchemaCollectionCompiler.CompileBaseMemberTypes(), and System.Xml.Schema.SchemaCollectionCompiler.CompileSimpleType().