コード例 #1
0
ファイル: TableHeap.cs プロジェクト: hj1980/Mosa
        /// <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));
            }
        }
コード例 #2
0
 void IMetadataProvider.Read(TokenTypes token, out GenericParamRow result)
 {
     TableHeap theap = (TableHeap)_streams[(int)HeapType.Tables];
     theap.Read(token, out result);
 }
コード例 #3
0
 public GenericParamRowExt(IMetadataProvider metadata, GenericParamRow row)
     : base(metadata)
 {
     this.row = row;
 }