Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
CustomAttributeData.cs
Go to the documentation of this file.
2using System.Text;
3
4namespace System.Reflection;
5
7{
8 public virtual Type AttributeType => Constructor.DeclaringType;
9
10 public virtual ConstructorInfo Constructor => null;
11
13
15
17 {
18 if ((object)target == null)
19 {
20 throw new ArgumentNullException("target");
21 }
22 return target.GetCustomAttributesData();
23 }
24
26 {
27 if ((object)target == null)
28 {
29 throw new ArgumentNullException("target");
30 }
31 return target.GetCustomAttributesData();
32 }
33
35 {
36 if ((object)target == null)
37 {
38 throw new ArgumentNullException("target");
39 }
40 return target.GetCustomAttributesData();
41 }
42
44 {
45 if (target == null)
46 {
47 throw new ArgumentNullException("target");
48 }
49 return target.GetCustomAttributesData();
50 }
51
53 {
54 }
55
56 public override string ToString()
57 {
60 valueStringBuilder.Append('[');
61 valueStringBuilder.Append(Constructor.DeclaringType.FullName);
62 valueStringBuilder.Append('(');
63 bool flag = true;
66 for (int i = 0; i < count; i++)
67 {
68 if (!flag)
69 {
70 valueStringBuilder.Append(", ");
71 }
73 flag = false;
74 }
77 for (int j = 0; j < count2; j++)
78 {
79 if (!flag)
80 {
81 valueStringBuilder.Append(", ");
82 }
84 flag = false;
85 }
86 valueStringBuilder.Append(")]");
87 return valueStringBuilder.ToString();
88 }
89
90 public override int GetHashCode()
91 {
92 return base.GetHashCode();
93 }
94
95 public override bool Equals(object? obj)
96 {
97 return obj == this;
98 }
99}
virtual IList< CustomAttributeData > GetCustomAttributesData()
Definition Assembly.cs:327
static IList< CustomAttributeData > GetCustomAttributes(Assembly target)
static IList< CustomAttributeData > GetCustomAttributes(Module target)
static IList< CustomAttributeData > GetCustomAttributes(ParameterInfo target)
static IList< CustomAttributeData > GetCustomAttributes(MemberInfo target)
virtual IList< CustomAttributeNamedArgument > NamedArguments
virtual IList< CustomAttributeTypedArgument > ConstructorArguments
virtual IList< CustomAttributeData > GetCustomAttributesData()
Definition MemberInfo.cs:77
virtual IList< CustomAttributeData > GetCustomAttributesData()
Definition Module.cs:96
virtual IList< CustomAttributeData > GetCustomAttributesData()