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

◆ ToTypeDefOrRefTag()

static TypeDefOrRefTag System.Reflection.Metadata.Ecma335.CodedIndex.ToTypeDefOrRefTag ( HandleKind kind)
inlinestaticprivate

Definition at line 468 of file CodedIndex.cs.

469 {
470 switch (kind)
471 {
472 case HandleKind.TypeDefinition:
473 return TypeDefOrRefTag.TypeDef;
474 case HandleKind.TypeReference:
475 return TypeDefOrRefTag.TypeRef;
476 default:
477 Throw.InvalidArgument_UnexpectedHandleKind(kind);
478 return TypeDefOrRefTag.TypeDef;
479 }
480 }

References System.Reflection.Throw.InvalidArgument_UnexpectedHandleKind().

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