The rows in the MethodDef table result from .method directives (see Chapter 14). The RVA column is computed when the image for the PE file is emitted and points to the COR_ILMETHOD structure for the body of the method (see Chapter 24.4)
Inheritance: TableBase
Example #1
0
 public string GetName(MethodDefTable m)
 {
     string n = this.GetStringsString(m.Name);
     if (m.ParentTable == null) return n;
     return this.GetName(m.ParentTable as TypeDefTable) + "::" + n;
 }
Example #2
0
 private void MakeTree(MethodDefTable m)
 {
     m.Children = new ArrayList[]
     {
         new ArrayList()
     }
     ;
     ArrayList listParam = this.Tables[(int) MetadataTables.Param];
     int paramCount = this.GetBlobBytes(m.Signature)[1];
     for (int i = 0; i < paramCount; i++)
     {
         ParamTable p = listParam[m.ParamList + i - 1] as ParamTable;
         m.Children[0].Add(p);
         p.ParentTable = m;
     }
 }
Example #3
0
 /// <summary>
 /// コンストラクタです。
 /// </summary>
 public MethodData(PEData data, MethodDefTable m)
 {
     MethodData.Initialize();
     this.Parse(data, m);
 }