110,539
社区成员
发帖
与我相关
我的任务
分享
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication206
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
X<String> S1 = new X<String>();
S1.t = "a";
MessageBox.Show(S1.t);
X<int> S2 = new X<int>();
S2.t = 10;
MessageBox.Show(S2.t.ToString());
}
class X<T>
{
public T t = default(T);
}
}
}
class Test1
{
public void Write1(string strText)
{
System.Web.HttpContext.Current.Response.Write("<script language=javascript>alert('"+strText+"');</script>");
}
}
protected void Button1_Click(object sender, EventArgs e)
{
string str = "aaa";
string cla= "程序集";
Assembly ass = Assembly.Load(cla);
Type t = ass.GetType(类名,true,true);
MethodInfo m= t.GetMethod("Write1"); }