示例#1
0
 //Compare the NodePriority for sorting
 public int CompareTo(Node nodeToCompare)
 {
     return(NodePriority.CompareTo(nodeToCompare.NodePriority));
 }
示例#2
0
 //Compare the NodePriority for sorting (make new custom comparer)
 public int CompareTo(Node nodeToCompare)
 {
     //Compare the current node priority to the nodeToCompare's node priority
     return(NodePriority.CompareTo(nodeToCompare.NodePriority));
 }