public override void VisitEventRow(EventRow row)
 {
     row.EventFlags = (Mono.Cecil.EventAttributes)m_binaryReader.ReadUInt16();
     row.Name       = ReadByIndexSize(m_stringsHeapIdxSz);
     row.EventType  = Utilities.GetMetadataToken(CodedIndex.TypeDefOrRef,
                                                 ReadByIndexSize(GetCodedIndexSize(CodedIndex.TypeDefOrRef)));
 }
        public EventRow CreateEventRow(EventAttributes _eventFlags, uint _name, MetadataToken _eventType)
        {
            EventRow row = new EventRow();

            row.EventFlags = _eventFlags;
            row.Name       = _name;
            row.EventType  = _eventType;
            return(row);
        }
Пример #3
0
 public override void VisitEventRow(EventRow row)
 {
     m_binaryWriter.Write ((ushort) row.EventFlags);
     WriteStringPointer (row.Name);
     WriteMetadataToken (row.EventType, CodedIndex.TypeDefOrRef);
 }
Пример #4
0
 public EventRow CreateEventRow(EventAttributes _eventFlags, uint _name, MetadataToken _eventType)
 {
     EventRow row = new EventRow ();
     row.EventFlags = _eventFlags;
     row.Name = _name;
     row.EventType = _eventType;
     return row;
 }
 public override void VisitEventRow(EventRow row)
 {
     m_binaryWriter.Write((ushort)row.EventFlags);
     WriteStringPointer(row.Name);
     WriteMetadataToken(row.EventType, CodedIndex.TypeDefOrRef);
 }
Пример #6
0
 public override void VisitEventRow(EventRow row)
 {
     row.EventFlags = (Mono.Cecil.EventAttributes) m_binaryReader.ReadUInt16 ();
     row.Name = ReadByIndexSize (m_stringsHeapIdxSz);
     row.EventType = Utilities.GetMetadataToken (CodedIndex.TypeDefOrRef,
         ReadByIndexSize (GetCodedIndexSize (CodedIndex.TypeDefOrRef)));
 }