using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication3
{
class Program
{
static void Main(string[] args)
{
//Userinfo 是一个对象
Type userinfo;
userinfo = Type.GetType("ConsoleApplication3.Userinfo", true, true);
Userinfo ss= Activator.CreateInstance(userinfo) as Userinfo;
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication3
{
public class Userinfo
{
public string name { get; set; }
public string address { get; set; }
}
}