Пример #1
0
 public override void VisitMethodSemanticsRow(MethodSemanticsRow row)
 {
     row.Semantics   = (CilStrip.Mono.Cecil.MethodSemanticsAttributes)m_binaryReader.ReadUInt16();
     row.Method      = ReadByIndexSize(GetIndexSize(MethodTable.RId));
     row.Association = Utilities.GetMetadataToken(CodedIndex.HasSemantics,
                                                  ReadByIndexSize(GetCodedIndexSize(CodedIndex.HasSemantics)));
 }
Пример #2
0
        public MethodSemanticsRow CreateMethodSemanticsRow(MethodSemanticsAttributes _semantics, uint _method, MetadataToken _association)
        {
            MethodSemanticsRow row = new MethodSemanticsRow();

            row.Semantics   = _semantics;
            row.Method      = _method;
            row.Association = _association;
            return(row);
        }
Пример #3
0
 public override void VisitMethodSemanticsRow(MethodSemanticsRow row)
 {
     m_binaryWriter.Write((ushort)row.Semantics);
     WriteTablePointer(row.Method, MethodTable.RId);
     WriteMetadataToken(row.Association, CodedIndex.HasSemantics);
 }