Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SoapAttributeOverrides.cs
Go to the documentation of this file.
2
4
6{
7 private readonly Hashtable _types = new Hashtable();
8
9 public SoapAttributes? this[Type type] => this[type, string.Empty];
10
11 public SoapAttributes? this[Type type, string member]
12 {
13 get
14 {
15 Hashtable hashtable = (Hashtable)_types[type];
16 if (hashtable == null)
17 {
18 return null;
19 }
20 return (SoapAttributes)hashtable[member];
21 }
22 }
23
24 public void Add(Type type, SoapAttributes? attributes)
25 {
26 Add(type, string.Empty, attributes);
27 }
28
29 public void Add(Type type, string member, SoapAttributes? attributes)
30 {
31 Hashtable hashtable = (Hashtable)_types[type];
32 if (hashtable == null)
33 {
34 hashtable = new Hashtable();
35 _types.Add(type, hashtable);
36 }
37 else if (hashtable[member] != null)
38 {
40 }
41 hashtable.Add(member, attributes);
42 }
43}
virtual void Add(object key, object? value)
Definition Hashtable.cs:676
static string XmlMultipleAttributeOverrides
Definition SR.cs:1590
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
Definition SR.cs:7
void Add(Type type, SoapAttributes? attributes)
void Add(Type type, string member, SoapAttributes? attributes)