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

◆ AnnotationsIterator()

IEnumerable< object > System.Xml.Linq.XObject.AnnotationsIterator ( Type type)
inlineprivateinherited

Definition at line 256 of file XObject.cs.

257 {
258 if (annotations == null)
259 {
260 yield break;
261 }
262 if (!(annotations is object[] a))
263 {
264 if (XHelper.IsInstanceOfType(annotations, type))
265 {
266 yield return annotations;
267 }
268 yield break;
269 }
270 foreach (object obj in a)
271 {
272 if (obj != null)
273 {
274 if (XHelper.IsInstanceOfType(obj, type))
275 {
276 yield return obj;
277 }
278 continue;
279 }
280 break;
281 }
282 }

References System.Xml.Linq.XObject.annotations, System.Xml.Linq.XHelper.IsInstanceOfType(), System.obj, and System.type.

Referenced by System.Xml.Linq.XObject.Annotations().