Tanis.Collections.Heap.getExisting C# (CSharp) Method

getExisting() public method

public getExisting ( object O ) : object
O object
return object
		public object getExisting(object O) {
			foreach (object v in FList) {
				if (O.Equals(v)) {
					return v;
				}
			}
			return null;
		}

Usage Example

Exemplo n.º 1
0
 private AStarNode getFromHeap(AStarNode node, Heap list)
 {
     object o = list.getExisting(node);
     return o == null ? null : (AStarNode)o;
 }