private ValueType ConvertToIndex(MetaDataTable table, uint index) { if (table.IsLarge(0)) { return(index); } return((ushort)index); }
private byte GetIndexSize(MetaDataTableType type) { MetaDataTable table = tablesHeap.Tables[(int)type]; if (table != null && table.IsLarge(0)) { return(sizeof(uint)); } return(sizeof(ushort)); }
internal object ProcessIndex(MetaDataTable table, uint index) { if (table == null || !table.IsLarge(0)) { return((ushort)index); } else { return(index); } }