public override void VisitMethodSemanticsRow(MethodSemanticsRow row)
 {
     row.Semantics   = (Mono.Cecil.MethodSemanticsAttributes)m_binaryReader.ReadUInt16();
     row.Method      = ReadByIndexSize(GetIndexSize(MethodTable.RId));
     row.Association = Utilities.GetMetadataToken(CodedIndex.HasSemantics,
                                                  ReadByIndexSize(GetCodedIndexSize(CodedIndex.HasSemantics)));
 }
        public MethodSemanticsRow CreateMethodSemanticsRow(MethodSemanticsAttributes _semantics, uint _method, MetadataToken _association)
        {
            MethodSemanticsRow row = new MethodSemanticsRow();

            row.Semantics   = _semantics;
            row.Method      = _method;
            row.Association = _association;
            return(row);
        }
Ejemplo n.º 3
0
 public override void VisitMethodSemanticsRow(MethodSemanticsRow row)
 {
     m_binaryWriter.Write ((ushort) row.Semantics);
     WriteTablePointer (row.Method, MethodTable.RId);
     WriteMetadataToken (row.Association, CodedIndex.HasSemantics);
 }
Ejemplo n.º 4
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;
 }
 public override void VisitMethodSemanticsRow(MethodSemanticsRow row)
 {
     m_binaryWriter.Write((ushort)row.Semantics);
     WriteTablePointer(row.Method, MethodTable.RId);
     WriteMetadataToken(row.Association, CodedIndex.HasSemantics);
 }
Ejemplo n.º 6
0
 public override void VisitMethodSemanticsRow(MethodSemanticsRow row)
 {
     row.Semantics = (Mono.Cecil.MethodSemanticsAttributes) m_binaryReader.ReadUInt16 ();
     row.Method = ReadByIndexSize (GetIndexSize (MethodTable.RId));
     row.Association = Utilities.GetMetadataToken (CodedIndex.HasSemantics,
         ReadByIndexSize (GetCodedIndexSize (CodedIndex.HasSemantics)));
 }