public MetaDataHeaders(BinaryReader reader) { Start = reader.BaseStream.Position; _ssah = new StorageSigAndHeader(reader); for (int i = 0; i < _ssah.NumOfStreams; ++i) { MDStreamHeader mds = new MDStreamHeader(reader); if (mds.Name == "#Strings") { _strstr = mds; } else if (mds.Name == "#Blob") { _blobstr = mds; } else if (mds.Name == "#GUID") { _guidstr = mds; } else if (mds.Name == "#US") { _usstr = mds; } else if (mds.Name == "#~") { _tablestr = mds; } else { _tablestr = mds; } } Length = reader.BaseStream.Position - Start; }
public MetaDataHeaders(BinaryReader reader) { Start = reader.BaseStream.Position; _ssah = new StorageSigAndHeader(reader); for(int i=0; i< _ssah.NumOfStreams;++i) { MDStreamHeader mds = new MDStreamHeader(reader); if (mds.Name == "#Strings") { _strstr = mds; } else if (mds.Name == "#Blob") { _blobstr = mds; } else if (mds.Name == "#GUID") { _guidstr = mds; } else if (mds.Name == "#US") { _usstr = mds; } else if (mds.Name == "#~") { _tablestr = mds; } else { _tablestr = mds; } } Length = reader.BaseStream.Position - Start; }