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

◆ Allows() [1/2]

virtual bool System.Xml.Schema.NamespaceList.Allows ( string ns)
inlinevirtual

Reimplemented in System.Xml.Schema.NamespaceListV1Compat.

Definition at line 86 of file NamespaceList.cs.

87 {
88 switch (_type)
89 {
90 case ListType.Any:
91 return true;
92 case ListType.Other:
93 if (ns != _targetNamespace)
94 {
95 return ns.Length != 0;
96 }
97 return false;
98 case ListType.Set:
99 return _set[ns] != null;
100 default:
101 return false;
102 }
103 }

References System.Xml.Schema.NamespaceList._set, System.Xml.Schema.NamespaceList._targetNamespace, System.Xml.Schema.NamespaceList._type, and System.Xml.Dictionary.

Referenced by System.Xml.Schema.NamespaceList.Allows(), System.Xml.Schema.XmlSchemaAny.Allows(), and System.Xml.Schema.XmlSchemaAnyAttribute.Allows().