コード例 #1
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)));
 }
コード例 #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);
 }
コード例 #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;
 }
コード例 #5
0
 public override void VisitMethodSemanticsRow(MethodSemanticsRow row)
 {
     m_binaryWriter.Write((ushort)row.Semantics);
     WriteTablePointer(row.Method, MethodTable.RId);
     WriteMetadataToken(row.Association, CodedIndex.HasSemantics);
 }
コード例 #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)));
 }