Guest User

Untitled

a guest
Jan 21st, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. // compile time
  2. new List<MyStruct1>();
  3. new List<MyClass1>();
  4.  
  5. ...
  6.  
  7. // run time, for a function that does typeof(List<>).GetGenericTypeDef or whatever
  8. InstantiateList<MyStruct2>(); // Mono on AOT platforms blows up because there was no reference to List<MyStruct2>
  9. InstantiateList<MyClass2>(); // No JITing, Mono is fine even though there was no reference to List<MyClass2>
Add Comment
Please, Sign In to add comment