Beispiel #1
0
 private ValueType GetMemberIndex(Workspace workspace, MetaDataTableGroup group, MetaDataMember member)
 {
     if (group.IsLarge)
     {
         return(group.GetCodedIndex(member));
     }
     return((ushort)group.GetCodedIndex(member));
 }
 private byte GetIndexSize(MetaDataTableGroup tablegroup)
 {
     foreach (MetaDataTable table in tablegroup.tables)
     {
         if (table != null && table.IsLarge(tablegroup.bits))
         {
             return(sizeof(uint));
         }
     }
     return(sizeof(ushort));
 }
Beispiel #3
0
 internal object GetCodedIndex(MetaDataTableGroup group, MetaDataMember member)
 {
     if (group.IsLarge)
     {
         return(group.GetCodedIndex(member));
     }
     else
     {
         return((ushort)group.GetCodedIndex(member));
     }
 }
Beispiel #4
0
 private byte GetIndexSize(MetaDataTableGroup tablegroup)
 {
     foreach (MetaDataTable table in tablegroup._tables)
         if (table != null && table.IsLarge(tablegroup._bits))
             return sizeof(uint);
     return sizeof(ushort);
 }