public HasFieldMarshal(MetadataTable table, ZeroBasedIndex index) { if (table != MetadataTable.Field && table != MetadataTable.Param) { throw new ArgumentOutOfRangeException("table"); } m_index = ((OneBasedIndex)index) | ((table == MetadataTable.Param ? 1u : 0u) << 1); }
public TypeOrMethodDef(MetadataTable table, ZeroBasedIndex index) { if (table != MetadataTable.TypeDef && table != MetadataTable.MethodDef) { throw new ArgumentException("Expected TypeDef or MethodDef", "table"); } var tableId = (table == MetadataTable.TypeDef) ? 0u : 1u; m_index = ((OneBasedIndex)index << 1) | tableId; }
public HasCustomAttribute(MetadataTable table, ZeroBasedIndex index) { uint value; if (!s_inverseTables.TryGetValue(table, out value)) { throw new ArgumentException("HasCustomAttributes does not support the provided meta-data table", "table"); } m_index = (OneBasedIndex)index | (value << 5); }
public HasFieldMarshal(OneBasedIndex index) { m_index = index; }
public MethodDefOrRef(OneBasedIndex index) { m_index = index; }
public TypeDefOrRef(OneBasedIndex index) { m_index = index; }
public HasCustomAttribute(OneBasedIndex index) { m_index = index; }
public TypeOrMethodDef(OneBasedIndex index) { m_index = index; }
public MetadataToken(OneBasedIndex value) { m_value = value; }
public CustomAttributeConstructor(OneBasedIndex index) { m_index = index; }
public HasSemantics(OneBasedIndex index) { m_index = index; }