链表类具有哈希表的功能

作者:袖梨 2022-07-02
using System;
namespace Study
{
 ///
 /// CChain 的摘要说明。
 ///

 public class CChain
 {
    
    public class CChainNode
    {
     public object Data;
     public CChainNode NextChainNode;
     public CChainNode PreviousChainNode;
     public object Tag;
     public string Key;
     public CChainNode()
     {
    this.Data=null;
    this.Tag=null;
    this.Key=null;
    this.NextChainNode=this.PreviousChainNode=null;
     }
     public CChainNode(object vData,object vTag,string vKey)
     {
    this.Data=vData;
    this.Tag=vTag;
    this.Key=vKey;
    this.NextChainNode=this.PreviousChainNode=null;
     }
    }
    public class CChainIterator
    {
     private CChainNode pCurrentChainNode,pFirstChainNode,pLastChainNode;
     private bool pbFirst,pbLast;

相关文章

精彩推荐