Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
XmlAttributeOverrides.cs
Go to the documentation of this file.
2
4
6{
8
9 public XmlAttributes? this[Type type] => this[type, string.Empty];
10
11 public XmlAttributes? this[Type type, string member]
12 {
13 get
14 {
15 if (!_types.TryGetValue(type, out var value) || !value.TryGetValue(member, out var value2))
16 {
17 return null;
18 }
19 return value2;
20 }
21 }
22
23 public void Add(Type type, XmlAttributes attributes)
24 {
25 Add(type, string.Empty, attributes);
26 }
27
28 public void Add(Type type, string member, XmlAttributes? attributes)
29 {
31 {
34 }
35 else if (value.ContainsKey(member))
36 {
38 }
39 value.Add(member, attributes);
40 }
41}
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
void Add(TKey key, TValue value)
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string XmlAttributeSetAgain
Definition SR.cs:1422
Definition SR.cs:7
void Add(Type type, string member, XmlAttributes? attributes)
readonly Dictionary< Type, Dictionary< string, XmlAttributes > > _types
void Add(Type type, XmlAttributes attributes)