110,536
社区成员
发帖
与我相关
我的任务
分享
using System;
public class Test
{
public string Method(string s)
{
return s.ToUpper();
}
}
using System;
using System.Reflection;
public class Demo
{
public static void Main()
{
const string fileName = @"Test.dll";
Assembly assembly = Assembly.LoadFrom(fileName);
Type [] types = assembly.GetTypes();
System.Reflection.MethodInfo[] methods = types[0].GetMethods();
object o = Activator.CreateInstance(types[0]);
Console.WriteLine(methods[0].Invoke(o, new object[] {"aa"}));
}
}
//标志急阅文件窗口是否打开
public static bool bolfrmHurryOpen = false;
public frmFilesIn(string strFile_Path)
{
InitializeComponent();
strFilePath = strFile_Path;
}
单独的控制一些子窗体的特殊属性我用这个
public bool bolfrmHurryOpen ;