Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // compile time
- new List<MyStruct1>();
- new List<MyClass1>();
- ...
- // run time, for a function that does typeof(List<>).GetGenericTypeDef or whatever
- InstantiateList<MyStruct2>(); // Mono on AOT platforms blows up because there was no reference to List<MyStruct2>
- InstantiateList<MyClass2>(); // No JITing, Mono is fine even though there was no reference to List<MyClass2>
Add Comment
Please, Sign In to add comment