public override void VisitEventRow(EventRow row) { row.EventFlags = (CilStrip.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); }
public override void VisitEventRow(EventRow row) { m_binaryWriter.Write((ushort)row.EventFlags); WriteStringPointer(row.Name); WriteMetadataToken(row.EventType, CodedIndex.TypeDefOrRef); }