Spring – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | using System.ComponentModel; |
2 | using System.Runtime.CompilerServices; |
||
3 | using System.Xml.Serialization; |
||
4 | using Configuration.Properties; |
||
5 | |||
6 | namespace Configuration |
||
7 | { |
||
8 | public class WhiteList : INotifyPropertyChanged |
||
9 | { |
||
10 | #region Public Events & Delegates |
||
11 | |||
12 | public event PropertyChangedEventHandler PropertyChanged; |
||
13 | |||
14 | #endregion |
||
15 | |||
16 | #region Public Enums, Properties and Fields |
||
17 | |||
18 | [XmlElement(ElementName = "Whitelist")] |
||
19 | public ObservableUniqueCollection<string> Whitelist |
||
20 | { |
||
21 | get => _whitelist; |
||
22 | set |
||
23 | { |
||
24 | if (Equals(value, _whitelist)) |
||
25 | { |
||
26 | return; |
||
27 | } |
||
28 | |||
29 | _whitelist = value; |
||
30 | OnPropertyChanged(); |
||
31 | } |
||
32 | } |
||
33 | |||
34 | #endregion |
||
35 | |||
36 | #region Private Delegates, Events, Enums, Properties, Indexers and Fields |
||
37 | |||
38 | private ObservableUniqueCollection<string> _whitelist = new ObservableUniqueCollection<string>(); |
||
39 | |||
40 | #endregion |
||
41 | |||
42 | #region Constructors, Destructors and Finalizers |
||
43 | |||
44 | [UsedImplicitly] |
||
45 | public WhiteList() |
||
46 | { |
||
47 | } |
||
48 | |||
49 | #endregion |
||
50 | |||
51 | #region Private Methods |
||
52 | |||
53 | [NotifyPropertyChangedInvocator] |
||
54 | protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) |
||
55 | { |
||
56 | PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); |
||
57 | } |
||
58 | |||
59 | #endregion |
||
60 | } |
||
61 | } |