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
コード例 #1
0
ファイル: IndexManager.cs プロジェクト: higepon/mona
 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;
 }
コード例 #2
0
ファイル: IndexManager.cs プロジェクト: higepon/mona
 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;
     }
 }
コード例 #3
0
ファイル: MethodData.cs プロジェクト: higepon/mona
 /// <summary>
 /// コンストラクタです。
 /// </summary>
 public MethodData(PEData data, MethodDefTable m)
 {
     MethodData.Initialize();
     this.Parse(data, m);
 }