terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ ValidateEventData< T >()

static T UnityEngine.EventSystems.ExecuteEvents.ValidateEventData< T > ( BaseEventData A_0)
inlinestatic
Type Constraints
T :class 

Definition at line 11 of file ExecuteEvents.cs.

11 : class
12 {
13 if (A_0 != null)
14 {
15 if (A_0 == null)
16 {
17 goto IL_0026;
18 }
19 if (A_0 != null && A_0 == null)
20 {
21 throw new InvalidCastException();
22 }
23 }
24 Type type = A_0.GetType();
25 Type type2;
26 string text = string.Format("Invalid type: {0} passed to event expecting {1}", type, type2);
27 IL_0026:
28 throw new InvalidCastException();
29 }
class f__AnonymousType0<< Count > j__TPar
new Type GetType()
Definition Type.cs:287

References System.Type.GetType(), j__TPar, and System.text.