You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run the QuickStart project under CF 2.0 (tweaking the async TcpListener to
sync); the List<T>.Sort method reports MethodAccessException when looking
at Contact/Customer.
Original issue reported on code.google.com by marc.gravell on 20 Nov 2008 at 7:34
The text was updated successfully, but these errors were encountered:
This turns out to be a curiosity of the CF 2.0 security model when using
generics
with internal classes from other assemblies (i.e. where the T is private to the
generic code). Even if no nasty access is attempted, the code (especially
List<T>.Sort) can break horribly.
Fix: mark your data classes as public, not internal.
Original comment by marc.gravell on 20 Nov 2008 at 7:36
Original issue reported on code.google.com by
marc.gravell
on 20 Nov 2008 at 7:34The text was updated successfully, but these errors were encountered: