Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
TrackingStringDictionary.cs
Go to the documentation of this file.
2
3namespace System.Net;
4
6{
7 private readonly bool _isReadOnly;
8
9 private bool _isChanged;
10
11 internal bool IsChanged
12 {
13 get
14 {
15 return _isChanged;
16 }
17 set
18 {
20 }
21 }
22
23 public override string this[string key]
24 {
25 get
26 {
27 return base[key];
28 }
29 set
30 {
31 if (_isReadOnly)
32 {
34 }
35 base[key] = value;
36 _isChanged = true;
37 }
38 }
39
41 : this(isReadOnly: false)
42 {
43 }
44
45 internal TrackingStringDictionary(bool isReadOnly)
46 {
47 _isReadOnly = isReadOnly;
48 }
49
50 public override void Add(string key, string value)
51 {
52 if (_isReadOnly)
53 {
55 }
56 base.Add(key, value);
57 _isChanged = true;
58 }
59
60 public override void Clear()
61 {
62 if (_isReadOnly)
63 {
65 }
66 base.Clear();
67 _isChanged = true;
68 }
69
70 public override void Remove(string key)
71 {
72 if (_isReadOnly)
73 {
75 }
76 base.Remove(key);
77 _isChanged = true;
78 }
79}
override void Add(string key, string value)
static string MailCollectionIsReadOnly
Definition SR.cs:34
Definition SR.cs:7