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

◆ ToHasCustomDebugInformationTag()

static HasCustomDebugInformationTag System.Reflection.Metadata.Ecma335.CodedIndex.ToHasCustomDebugInformationTag ( HandleKind kind)
inlinestaticprivate

Definition at line 496 of file CodedIndex.cs.

497 {
498 switch (kind)
499 {
500 case HandleKind.MethodDefinition:
501 return HasCustomDebugInformationTag.MethodDef;
502 case HandleKind.FieldDefinition:
503 return HasCustomDebugInformationTag.Field;
504 case HandleKind.TypeReference:
505 return HasCustomDebugInformationTag.TypeRef;
506 case HandleKind.TypeDefinition:
507 return HasCustomDebugInformationTag.TypeDef;
508 case HandleKind.Parameter:
509 return HasCustomDebugInformationTag.Param;
510 case HandleKind.InterfaceImplementation:
511 return HasCustomDebugInformationTag.InterfaceImpl;
512 case HandleKind.MemberReference:
513 return HasCustomDebugInformationTag.MemberRef;
514 case HandleKind.ModuleDefinition:
515 return HasCustomDebugInformationTag.Module;
516 case HandleKind.DeclarativeSecurityAttribute:
517 return HasCustomDebugInformationTag.DeclSecurity;
518 case HandleKind.PropertyDefinition:
519 return HasCustomDebugInformationTag.Property;
520 case HandleKind.EventDefinition:
521 return HasCustomDebugInformationTag.Event;
522 case HandleKind.StandaloneSignature:
523 return HasCustomDebugInformationTag.StandAloneSig;
524 case HandleKind.ModuleReference:
525 return HasCustomDebugInformationTag.ModuleRef;
526 case HandleKind.TypeSpecification:
527 return HasCustomDebugInformationTag.TypeSpec;
528 case HandleKind.AssemblyDefinition:
529 return HasCustomDebugInformationTag.Assembly;
530 case HandleKind.AssemblyReference:
531 return HasCustomDebugInformationTag.AssemblyRef;
532 case HandleKind.AssemblyFile:
534 case HandleKind.ExportedType:
535 return HasCustomDebugInformationTag.ExportedType;
536 case HandleKind.ManifestResource:
537 return HasCustomDebugInformationTag.ManifestResource;
538 case HandleKind.GenericParameter:
539 return HasCustomDebugInformationTag.GenericParam;
540 case HandleKind.GenericParameterConstraint:
541 return HasCustomDebugInformationTag.GenericParamConstraint;
542 case HandleKind.MethodSpecification:
543 return HasCustomDebugInformationTag.MethodSpec;
544 case HandleKind.Document:
545 return HasCustomDebugInformationTag.Document;
546 case HandleKind.LocalScope:
547 return HasCustomDebugInformationTag.LocalScope;
548 case HandleKind.LocalVariable:
549 return HasCustomDebugInformationTag.LocalVariable;
550 case HandleKind.LocalConstant:
551 return HasCustomDebugInformationTag.LocalConstant;
552 case HandleKind.ImportScope:
553 return HasCustomDebugInformationTag.ImportScope;
554 default:
555 Throw.InvalidArgument_UnexpectedHandleKind(kind);
556 return HasCustomDebugInformationTag.MethodDef;
557 }
558 }

References System.Reflection.Throw.InvalidArgument_UnexpectedHandleKind().

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