Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ IsDefined() [3/4]

static bool System.Reflection.PseudoCustomAttribute.IsDefined ( RuntimeParameterInfo parameter,
RuntimeType caType )
inlinestaticpackage

Definition at line 139 of file PseudoCustomAttribute.cs.

140 {
141 bool flag = caType == typeof(object) || caType == typeof(Attribute);
142 if (!flag && !s_pca.Contains(caType))
143 {
144 return false;
145 }
146 if ((flag || caType == typeof(InAttribute)) && parameter.IsIn)
147 {
148 return true;
149 }
150 if ((flag || caType == typeof(OutAttribute)) && parameter.IsOut)
151 {
152 return true;
153 }
154 if ((flag || caType == typeof(OptionalAttribute)) && parameter.IsOptional)
155 {
156 return true;
157 }
159 {
160 return true;
161 }
162 return false;
163 }
static MarshalAsAttribute GetMarshalAsCustomAttribute(RuntimeParameterInfo parameter)
static readonly HashSet< RuntimeType > s_pca

References System.Reflection.PseudoCustomAttribute.GetMarshalAsCustomAttribute(), and System.Reflection.PseudoCustomAttribute.s_pca.