您的位置:首页 > 编程语言 > C#

DataGrid相邻行有相同内容时对指定列合并和C#可以实现DLL库的动态调用

2005-10-11 19:09 761 查看
public void FormatGrid(DataGrid spangrid,int spancell,int spanby)
C#可以实现DLL库的动态调用

Assembly assmebly = Assembly.LoadFile(@"C:WindowsApplication2005-09-30.dll");
Type t = assmebly.GetType("WindowsApplication2005_09_30.Class1");
object obj = Activator.CreateInstance(t,null);
MethodInfo method = t.GetMethod("Test01");
namespace WindowsApplication2005_09_30
{
public class Class1
{
public int Test01(int i)
{
return i*10;
}
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: