I am working on a ASP.NET application that has a class that inherits a List of a Custom Object.
public class UserRoleList : List {
publ
You need to do the following
The easiest way to do this is to add the [Serializable] attribute to the classes. This will work in most cases.
On a different note, deriving from List is usually speaking a bad idea. The class is not meant to be derived from and any attempt to specialize it's behavior can be thwarted in sceanarios where the derived class is used from a List reference. Can you explain why you want to derive in this way? There is likely a more robust solution.