コード例 #1
0
 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)));
 }
コード例 #2
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);
        }
コード例 #3
0
 public override void VisitEventRow(EventRow row)
 {
     m_binaryWriter.Write((ushort)row.EventFlags);
     WriteStringPointer(row.Name);
     WriteMetadataToken(row.EventType, CodedIndex.TypeDefOrRef);
 }