日期:2014-05-17 浏览次数:20773 次
//标签类
public Class BiaoqianCollection()
{
public list<Biaoqian> lbq=new list<Biaoqian>();
}
public Class Biaoqian()
{
public string bq=""; //主标签
public list<string> lcontent=new list<string>(); //内容list
}
private List<string> ReplaceBiaoqian(string template,BiaoqianCollection bqcollection)
{
//算法实现
}
public void main()
{
BiaoqianCollection AllBq=new BiaoqianCollection();
Contents new1=new Contents();
new1.bq="A"
new1.lcontent.Add("我你他");
new1.lcontent.Add("甲乙丙");
.......
new1.lcontent.Add("偶倪她");
ALLBq.lbq.add(new1);
Contents new3=new Contents();
new2.bq="B"
new2.lcontent.Add("是");
new2.lcontent.Add("似");
.......
new3.lcontent.Add("乃");
ALLBq.lbq.add(new2);
Contents new3=new Contents();
new3.bq="C"
new3.lcontent.Add("夏商周");
new3.lcontent.Add("秦汉");
.......
new3.lcontent.Add("元明清");
ALLBq.lbq.add("new3");
Contents new4=new Contents();
new4.bq="D"
new4.lcontent.Add("朝");
ALLBq.lbq.add("new4");
Contents new5=new Contents();
new5.bq="E"
new5.lcontent.Add("人男女");
ALLBq.lbq.add("new4");
//下面是要实现的,
string _tmp=""//模版字符串
list<string> lresult=new list<string>();
lresult=ReplaceBiaoqian(string template,BiaoqianCollection bqcollection)
}