コード例 #1
0
        public override bool Equals(object obj)
        {
            if (obj is OSPFAreaVertex)
            {
                OSPFAreaVertex oav = obj as OSPFAreaVertex;
                if (oav.iID == this.iID)
                {
                    return(true);
                }
            }

            return(false);
        }
コード例 #2
0
 public Link(int iCost, OSPFAreaVertex vertexSource, OSPFAreaVertex vertexDestination)
 {
     this.iCost             = iCost;
     this.vertexSource      = vertexSource;
     this.vertexDestination = vertexDestination;
 }