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

◆ MapVirtualHandleRowId()

static int System.Reflection.Metadata.Ecma335.MetadataTokens.MapVirtualHandleRowId ( MetadataReader reader,
Handle handle )
inlinestaticprivate

Definition at line 53 of file MetadataTokens.cs.

54 {
55 switch (handle.Kind)
56 {
57 case HandleKind.AssemblyReference:
58 return reader.AssemblyRefTable.NumberOfNonVirtualRows + 1 + handle.RowId;
59 case HandleKind.Blob:
60 case HandleKind.String:
61 throw new NotSupportedException(System.SR.CantGetOffsetForVirtualHeapHandle);
62 default:
63 Throw.InvalidArgument_UnexpectedHandleKind(handle.Kind);
64 return 0;
65 }
66 }
static string CantGetOffsetForVirtualHeapHandle
Definition SR.cs:102
Definition SR.cs:7

References System.SR.CantGetOffsetForVirtualHeapHandle, System.handle, and System.Reflection.Throw.InvalidArgument_UnexpectedHandleKind().

Referenced by System.Reflection.Metadata.Ecma335.MetadataTokens.GetHeapOffset(), System.Reflection.Metadata.Ecma335.MetadataTokens.GetRowNumber(), System.Reflection.Metadata.Ecma335.MetadataTokens.GetToken(), and System.Reflection.Metadata.Ecma335.MetadataTokens.GetToken().