public override void VisitAssemblyRefRow(AssemblyRefRow row)
 {
     row.MajorVersion     = m_binaryReader.ReadUInt16();
     row.MinorVersion     = m_binaryReader.ReadUInt16();
     row.BuildNumber      = m_binaryReader.ReadUInt16();
     row.RevisionNumber   = m_binaryReader.ReadUInt16();
     row.Flags            = (Mono.Cecil.AssemblyFlags)m_binaryReader.ReadUInt32();
     row.PublicKeyOrToken = ReadByIndexSize(m_blobHeapIdxSz);
     row.Name             = ReadByIndexSize(m_stringsHeapIdxSz);
     row.Culture          = ReadByIndexSize(m_stringsHeapIdxSz);
     row.HashValue        = ReadByIndexSize(m_blobHeapIdxSz);
 }
 public override void VisitAssemblyRefRow(AssemblyRefRow row)
 {
     m_binaryWriter.Write(row.MajorVersion);
     m_binaryWriter.Write(row.MinorVersion);
     m_binaryWriter.Write(row.BuildNumber);
     m_binaryWriter.Write(row.RevisionNumber);
     m_binaryWriter.Write((uint)row.Flags);
     WriteBlobPointer(row.PublicKeyOrToken);
     WriteStringPointer(row.Name);
     WriteStringPointer(row.Culture);
     WriteBlobPointer(row.HashValue);
 }
        public AssemblyRefRow CreateAssemblyRefRow(ushort _majorVersion, ushort _minorVersion, ushort _buildNumber, ushort _revisionNumber, AssemblyFlags _flags, uint _publicKeyOrToken, uint _name, uint _culture, uint _hashValue)
        {
            AssemblyRefRow row = new AssemblyRefRow();

            row.MajorVersion     = _majorVersion;
            row.MinorVersion     = _minorVersion;
            row.BuildNumber      = _buildNumber;
            row.RevisionNumber   = _revisionNumber;
            row.Flags            = _flags;
            row.PublicKeyOrToken = _publicKeyOrToken;
            row.Name             = _name;
            row.Culture          = _culture;
            row.HashValue        = _hashValue;
            return(row);
        }
 public AssemblyRefRow CreateAssemblyRefRow(ushort _majorVersion, ushort _minorVersion, ushort _buildNumber, ushort _revisionNumber, AssemblyFlags _flags, uint _publicKeyOrToken, uint _name, uint _culture, uint _hashValue)
 {
     AssemblyRefRow row = new AssemblyRefRow ();
     row.MajorVersion = _majorVersion;
     row.MinorVersion = _minorVersion;
     row.BuildNumber = _buildNumber;
     row.RevisionNumber = _revisionNumber;
     row.Flags = _flags;
     row.PublicKeyOrToken = _publicKeyOrToken;
     row.Name = _name;
     row.Culture = _culture;
     row.HashValue = _hashValue;
     return row;
 }
 public override void VisitAssemblyRefRow(AssemblyRefRow row)
 {
     m_binaryWriter.Write (row.MajorVersion);
     m_binaryWriter.Write (row.MinorVersion);
     m_binaryWriter.Write (row.BuildNumber);
     m_binaryWriter.Write (row.RevisionNumber);
     m_binaryWriter.Write ((uint) row.Flags);
     WriteBlobPointer (row.PublicKeyOrToken);
     WriteStringPointer (row.Name);
     WriteStringPointer (row.Culture);
     WriteBlobPointer (row.HashValue);
 }
Esempio n. 6
0
 public override void VisitAssemblyRefRow(AssemblyRefRow row)
 {
     row.MajorVersion = m_binaryReader.ReadUInt16 ();
     row.MinorVersion = m_binaryReader.ReadUInt16 ();
     row.BuildNumber = m_binaryReader.ReadUInt16 ();
     row.RevisionNumber = m_binaryReader.ReadUInt16 ();
     row.Flags = (Mono.Cecil.AssemblyFlags) m_binaryReader.ReadUInt32 ();
     row.PublicKeyOrToken = ReadByIndexSize (m_blobHeapIdxSz);
     row.Name = ReadByIndexSize (m_stringsHeapIdxSz);
     row.Culture = ReadByIndexSize (m_stringsHeapIdxSz);
     row.HashValue = ReadByIndexSize (m_blobHeapIdxSz);
 }