Was.OrcSearch – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | using System.Collections; |
2 | using System.Collections.Generic; |
||
3 | using System.Linq; |
||
4 | using Was.OrcSearch.Models.Interfaces; |
||
5 | |||
6 | namespace Was.OrcSearch.Models |
||
7 | { |
||
8 | public abstract class MetadataCollectionBase : IMetadataCollection |
||
9 | { |
||
10 | public abstract IEnumerable<IMetadata> All { get; } |
||
11 | |||
12 | public virtual IMetadata GetMetadata(string metadataName) |
||
13 | { |
||
14 | return All.FirstOrDefault(x => string.Equals(x.Name, metadataName)); |
||
15 | } |
||
16 | |||
17 | IEnumerator<IMetadata> IEnumerable<IMetadata>.GetEnumerator() |
||
18 | { |
||
19 | return All.GetEnumerator(); |
||
20 | } |
||
21 | |||
22 | IEnumerator IEnumerable.GetEnumerator() |
||
23 | { |
||
24 | return All.GetEnumerator(); |
||
25 | } |
||
26 | } |
||
27 | } |