/// <summary> /// 判断节点是否在列表中 /// </summary> /// <param name="node">带判断节点</param> /// <param name="nodeList">列表</param> /// <returns>判断结果</returns> public bool InNodeList(AStarNode node, List <AStarNode> nodeList) { return(nodeList.FirstOrDefault(temp => temp.Point == node.Point) != null); }