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 395B

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