新手泛型赋值问题!求教
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
using System.Xml.Serialization;
namespace MangerFT.FS
{
public partial class WebForm4 : System.Web.UI.Page
{
public static string UCFilePath = "D:\\UserConfig.xml";
protected void Page_Load(object sender, EventArgs e)
{
}
[Serializable]
/// <summary>
/// 用户信息类
/// </summary>
public class Userconfig
{
public List<UserDetail> ListUser;
}
[Serializable]
public class UserDetail
{
private string id;
/// <summary>
/// 用户Id
/// </summary>
public string Id
{
get
{
return id;
}
set
{
id = value;
}
}
private string name;
/// <summary>
/// 用户名
/// </summary>
public string Name
&nbs