using System; using System.Collections.Generic; using System.Text; using Debugger.MetaData; using Debugger.Wrappers.CorSym; using Debugger.Wrappers; using Debugger.Expressions; namespace ikvm.debugger.win { class TargetMethod { private readonly MethodInfo methodInfo; internal TargetMethod(MethodInfo methodInfo){ this.methodInfo = methodInfo; } internal String Name { get { return methodInfo.FullName; } } internal int MethodId { get { return (int)methodInfo.MetadataToken; } } internal String JniSignature { get { StringBuilder signature = new StringBuilder(); signature.Append(methodInfo.ParameterCount + "-" + methodInfo.Module.MetaData.GetGenericParamCount(methodInfo.MetadataToken)); for(int i=0; i