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

◆ ToTypeOrMethodDefTag()

static TypeOrMethodDefTag System.Reflection.Metadata.Ecma335.CodedIndex.ToTypeOrMethodDefTag ( HandleKind kind)
inlinestaticprivate

Definition at line 482 of file CodedIndex.cs.

483 {
484 switch (kind)
485 {
486 case HandleKind.TypeDefinition:
487 return TypeOrMethodDefTag.TypeDef;
488 case HandleKind.MethodDefinition:
489 return TypeOrMethodDefTag.MethodDef;
490 default:
491 Throw.InvalidArgument_UnexpectedHandleKind(kind);
492 return TypeOrMethodDefTag.TypeDef;
493 }
494 }

References System.Reflection.Throw.InvalidArgument_UnexpectedHandleKind().

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