You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ContentCollection.cs 414B

123456789101112131415161718
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace Novacode
  6. {
  7. public class ContentCollection : List<Content>
  8. {
  9. public Content this[string name]
  10. {
  11. get
  12. {
  13. return this.FirstOrDefault(content => string.Equals(content.Name, name, StringComparison.CurrentCultureIgnoreCase));
  14. }
  15. }
  16. }
  17. }