Was.OrcSearch – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | using System; |
2 | using System.Collections.Generic; |
||
3 | |||
4 | namespace Was.OrcSearch.Models |
||
5 | { |
||
6 | public class DictionaryObjectWithMetadata : ObjectWithMetadata |
||
7 | { |
||
8 | private readonly Dictionary<string, object> _metadata; |
||
9 | |||
10 | #region Constructors |
||
11 | |||
12 | public DictionaryObjectWithMetadata(object instance, Dictionary<string, Type> dictionarySchema, |
||
13 | Dictionary<string, object> metadata) |
||
14 | : base(instance, new DictionaryMetadataCollection(dictionarySchema)) |
||
15 | { |
||
16 | _metadata = metadata; |
||
17 | } |
||
18 | |||
19 | #endregion |
||
20 | |||
21 | public override object GetMetadataValue(string key) |
||
22 | { |
||
23 | return GetMetadataValueWithInstance(_metadata, key); |
||
24 | } |
||
25 | |||
26 | public override bool SetMetadataValue(string key, object value) |
||
27 | { |
||
28 | return SetMetadataValueWithInstance(_metadata, key, value); |
||
29 | } |
||
30 | } |
||
31 | } |