void IMetadataProvider.Read(TokenTypes token, out AssemblyRow result)
 {
     TableHeap theap = (TableHeap)_streams[(int)HeapType.Tables];
     theap.Read(token, out result);
 }
Exemple #2
0
        /// <summary>
        /// Reads the specified token.
        /// </summary>
        /// <param name="token">The token.</param>
        /// <param name="result">The result.</param>
        public void Read(TokenTypes token, out AssemblyRow result)
        {
            if ((token & TokenTypes.TableMask) != TokenTypes.Assembly)
                throw new ArgumentException ("Invalid token type for AssemblyRow.", "token");

            using (BinaryReader reader = CreateReaderForToken (token))
            {
                result = new AssemblyRow ((AssemblyHashAlgorithm)reader.ReadUInt32 (), reader.ReadUInt16 (), reader.ReadUInt16 (), reader.ReadUInt16 (), reader.ReadUInt16 (), (AssemblyFlags)reader.ReadUInt32 (), ReadIndexValue (reader, IndexType.BlobHeap), ReadIndexValue (reader, IndexType.StringHeap), ReadIndexValue (reader, IndexType.StringHeap));
            }
        }