public class HeroNode { public int no; public string name; public string nickname; public HeroNode next;//指向下一个节点 public HeroNode pre;//指向下一个节点 //构造器 public HeroNode(int no, string name, string nickname) { this.no = no; this.name = name; this.nickname = nickname; } //为了现实方法,我们重新toString public override string ToString() { return "HeroNode[no=" + no + ",name=" + name + ",nickname=" + nickname + "]"; } } }