예제 #1
0
 private ValueType ConvertToIndex(MetaDataTable table, uint index)
 {
     if (table.IsLarge(0))
     {
         return(index);
     }
     return((ushort)index);
 }
예제 #2
0
        private byte GetIndexSize(MetaDataTableType type)
        {
            MetaDataTable table = tablesHeap.Tables[(int)type];

            if (table != null && table.IsLarge(0))
            {
                return(sizeof(uint));
            }
            return(sizeof(ushort));
        }
예제 #3
0
 internal object ProcessIndex(MetaDataTable table, uint index)
 {
     if (table == null || !table.IsLarge(0))
     {
         return((ushort)index);
     }
     else
     {
         return(index);
     }
 }