Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public interface IFoo
- {
- }
- public interface IFooCollection
- {
- IEnumerable<IFoo> Items { get; }
- }
- public class FooCollection<T> : IFooCollection where T : IFoo
- {
- public IEnumerable<T> Items { get; set; }
- IEnumerable<IFoo> IFooCollection.Items
- {
- get { return Items; }
- }
- }
Add Comment
Please, Sign In to add comment