/// <summary> /// Reads the specified token. /// </summary> /// <param name="token">The token.</param> /// <param name="result">The result.</param> public void Read(TokenTypes token, out GenericParamRow result) { if ((token & TokenTypes.TableMask) != TokenTypes.GenericParam) throw new ArgumentException ("Invalid token type for GenericParamRow.", "token"); using (BinaryReader reader = CreateReaderForToken (token)) { result = new GenericParamRow (reader.ReadUInt16 (), (GenericParamAttributes)reader.ReadUInt16 (), ReadIndexValue (reader, IndexType.TypeOrMethodDef), ReadIndexValue (reader, IndexType.StringHeap)); } }
void IMetadataProvider.Read(TokenTypes token, out GenericParamRow result) { TableHeap theap = (TableHeap)_streams[(int)HeapType.Tables]; theap.Read(token, out result); }
public GenericParamRowExt(IMetadataProvider metadata, GenericParamRow row) : base(metadata) { this.row = row; }