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

◆ NameOf()

string System.Xml.Schema.SymbolsDictionary.NameOf ( int symbol)
inline

Definition at line 167 of file SymbolsDictionary.cs.

168 {
169 foreach (DictionaryEntry name in _names)
170 {
171 if ((int)name.Value == symbol)
172 {
173 return ((XmlQualifiedName)name.Key).ToString();
174 }
175 }
176 if (_wildcards != null)
177 {
179 {
180 if ((int)wildcard.Value == symbol)
181 {
182 return (string)wildcard.Key + ":*";
183 }
184 }
185 }
186 return "##other:*";
187 }

References System.Xml.Schema.SymbolsDictionary._names, System.Xml.Schema.SymbolsDictionary._wildcards, and System.Xml.Dictionary.

Referenced by System.Xml.Schema.DfaContentValidator.ExpectedElements(), System.Xml.Schema.NfaContentValidator.ExpectedElements(), and System.Xml.Schema.RangeContentValidator.ExpectedElements().