/// <summary>
/// 利用反射机制查看Dll文件中的方法
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void simpleButtonLook_Click(object sender, EventArgs e)
{
string path = "H:/Dongle_d.dll";
Assembly assembly = Assembly.LoadFile(path);
Type[] t = assembly.GetTypes();
foreach (Type v in t)
{
MethodInfo[] myMethods = v.GetMethods();
foreach (MethodInfo method in myMethods)
{
this.richTextBoxDetail.AppendText(method.Name + method.MemberType + method.ReturnParameter + method.ReturnType + "\n");
}
}
}
/// 利用反射机制查看Dll文件中的方法
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void simpleButtonLook_Click(object sender, EventArgs e)
{
string path = "H:/Dongle_d.dll";
Assembly assembly = Assembly.LoadFile(path);
Type[] t = assembly.GetTypes();
foreach (Type v in t)
{
MethodInfo[] myMethods = v.GetMethods();
foreach (MethodInfo method in myMethods)
{
this.richTextBoxDetail.AppendText(method.Name + method.MemberType + method.ReturnParameter + method.ReturnType + "\n");
}
}
}