Guest User

Untitled

a guest
Dec 15th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. public interface IFoo
  2. {
  3.  
  4. }
  5.  
  6. public interface IFooCollection
  7. {
  8. IEnumerable<IFoo> Items { get; }
  9. }
  10.  
  11. public class FooCollection<T> : IFooCollection where T : IFoo
  12. {
  13. public IEnumerable<T> Items { get; set; }
  14.  
  15. IEnumerable<IFoo> IFooCollection.Items
  16. {
  17. get { return Items; }
  18. }
  19. }
Add Comment
Please, Sign In to add comment