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

◆ AnnotationForSealedType()

object System.Xml.Linq.XObject.AnnotationForSealedType ( Type type)
inlineprivateinherited

Definition at line 195 of file XObject.cs.

196 {
197 if (annotations != null)
198 {
199 if (!(annotations is object[] array))
200 {
201 if (annotations.GetType() == type)
202 {
203 return annotations;
204 }
205 }
206 else
207 {
208 foreach (object obj in array)
209 {
210 if (obj == null)
211 {
212 break;
213 }
214 if (obj.GetType() == type)
215 {
216 return obj;
217 }
218 }
219 }
220 }
221 return null;
222 }

References System.Xml.Linq.XObject.annotations, System.array, System.obj, and System.type.