Search Issue Tracker
Fixed in 5.6.0
Votes
0
Found in
5.6.0b3
Issue ID
878657
Regression
No
Attempting to call IReadOnlyCollection<T> methods on T[] fails on IL2CPP
It throws an exception when trying to do so:
System.MethodAccessException: Attempt to access method 'System.Collections.Generic.IReadOnlyCollection<System.Object>.get_Count' on type 'System.String[]' failed.
Repro code:
Console.WriteLine(((IReadOnlyCollection<object>)new string[5]).Count);
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Spot Light with 'Box' Shape stops working when it collides with Mesh
- Accepting Asset Store EULA endless loop in Package Manager window
- “InvalidOperationException: Sequence contains no matching element“ error when reenabling a custom Debug Draw Mode
- Prefab that contains a layout group is marked as changed by the Editor when opened
- Emission animation does not appear when the "Emission Map" parameter is set to black in a Lit material
Add comment