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

コード例 #1
0
ファイル: AStar.cs プロジェクト: poeticmatter/tutorials
 private AStarNode getFromHeap(AStarNode node, Heap list)
 {
     object o = list.getExisting(node);
     return o == null ? null : (AStarNode)o;
 }