Handling Error CS1061: 'System.Collections.Generic.IList' does not contain a definition for '[MethodName]'
Article Info
Rating: Not rated
|
Article relates to
|
OpenAccess ORM
Q3 2011 or later
|
|
Created by
|
Ivailo Ivanov
|
|
Last modified
|
November 18, 2011
|
|
Last modified by
|
Ivailo Ivanov
|
DESCRIPTION
As a result of changing the collection of context items from List<MetaItem> to IList<MetaItem>, the methods that are part of the List class and not the IList interface are no longer available. Examples include RemoveAll<>, Sort<>, etc.
SOLUTION
We have create a helper class with extension methods for backward compatibility. Please find the class attached. If you add it to the project containing your OpenAccessContext implementation, the methods will become available and your legacy code will compile.
Comments
There are no comments yet.
If you'd like to comment on this KB
article, please, send us a
Support Ticket.
Thank you!
Please
Sign In
to rate this article.