I have an ICollection called foos in my class which I want to expose as read-only (see this question). I see that the interface defines a
ICollection
foos
Sometimes you may want to use an interface, perhaps because you want to mock the collection during unit testing. Please see my blog entry for adding your own interface to ReadonlyCollection by using an adapter.