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)); }
internal object GetCodedIndex(MetaDataTableGroup group, MetaDataMember member) { if (group.IsLarge) { return(group.GetCodedIndex(member)); } else { 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); }