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

◆ IsSubset()

static bool System.Xml.Schema.NamespaceList.IsSubset ( NamespaceList sub,
NamespaceList super )
inlinestatic

Definition at line 152 of file NamespaceList.cs.

153 {
154 if (super._type == ListType.Any)
155 {
156 return true;
157 }
158 if (sub._type == ListType.Other && super._type == ListType.Other)
159 {
160 return super._targetNamespace == sub._targetNamespace;
161 }
162 if (sub._type == ListType.Set)
163 {
164 if (super._type == ListType.Other)
165 {
166 return !sub._set.Contains(super._targetNamespace);
167 }
168 foreach (string key in sub._set.Keys)
169 {
170 if (!super._set.Contains(key))
171 {
172 return false;
173 }
174 }
175 return true;
176 }
177 return false;
178 }

References System.Xml.Dictionary, and System.key.

Referenced by System.Xml.Schema.Compiler.IsAnyFromAny(), System.Xml.Schema.SchemaCollectionCompiler.IsAnyFromAny(), and System.Xml.Schema.XmlSchemaAnyAttribute.IsSubset().