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

◆ Annotation< T >()

T? System.Xml.Linq.XObject.Annotation< T > ( )
inlineinherited
Type Constraints
T :class 

Definition at line 224 of file XObject.cs.

224 : class
225 {
226 if (annotations != null)
227 {
228 if (!(annotations is object[] array))
229 {
230 return annotations as T;
231 }
232 foreach (object obj in array)
233 {
234 if (obj == null)
235 {
236 break;
237 }
238 if (obj is T result)
239 {
240 return result;
241 }
242 }
243 }
244 return null;
245 }

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