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

◆ ToHasCustomAttributeTag()

static HasCustomAttributeTag System.Reflection.Metadata.Ecma335.CodedIndex.ToHasCustomAttributeTag ( HandleKind kind)
inlinestaticprivate

Definition at line 239 of file CodedIndex.cs.

240 {
241 switch (kind)
242 {
243 case HandleKind.MethodDefinition:
244 return HasCustomAttributeTag.MethodDef;
245 case HandleKind.FieldDefinition:
246 return HasCustomAttributeTag.Field;
247 case HandleKind.TypeReference:
248 return HasCustomAttributeTag.TypeRef;
249 case HandleKind.TypeDefinition:
250 return HasCustomAttributeTag.TypeDef;
251 case HandleKind.Parameter:
252 return HasCustomAttributeTag.Param;
253 case HandleKind.InterfaceImplementation:
254 return HasCustomAttributeTag.InterfaceImpl;
255 case HandleKind.MemberReference:
256 return HasCustomAttributeTag.MemberRef;
257 case HandleKind.ModuleDefinition:
258 return HasCustomAttributeTag.Module;
259 case HandleKind.DeclarativeSecurityAttribute:
260 return HasCustomAttributeTag.DeclSecurity;
261 case HandleKind.PropertyDefinition:
262 return HasCustomAttributeTag.Property;
263 case HandleKind.EventDefinition:
264 return HasCustomAttributeTag.Event;
265 case HandleKind.StandaloneSignature:
266 return HasCustomAttributeTag.StandAloneSig;
267 case HandleKind.ModuleReference:
268 return HasCustomAttributeTag.ModuleRef;
269 case HandleKind.TypeSpecification:
270 return HasCustomAttributeTag.TypeSpec;
271 case HandleKind.AssemblyDefinition:
272 return HasCustomAttributeTag.Assembly;
273 case HandleKind.AssemblyReference:
274 return HasCustomAttributeTag.AssemblyRef;
275 case HandleKind.AssemblyFile:
276 return HasCustomAttributeTag.File;
277 case HandleKind.ExportedType:
278 return HasCustomAttributeTag.ExportedType;
279 case HandleKind.ManifestResource:
280 return HasCustomAttributeTag.ManifestResource;
281 case HandleKind.GenericParameter:
282 return HasCustomAttributeTag.GenericParam;
283 case HandleKind.GenericParameterConstraint:
284 return HasCustomAttributeTag.GenericParamConstraint;
285 case HandleKind.MethodSpecification:
286 return HasCustomAttributeTag.MethodSpec;
287 default:
288 Throw.InvalidArgument_UnexpectedHandleKind(kind);
289 return HasCustomAttributeTag.MethodDef;
290 }
291 }

References System.Reflection.Throw.InvalidArgument_UnexpectedHandleKind().

Referenced by System.Reflection.Metadata.Ecma335.CodedIndex.HasCustomAttribute().