/// <summary> /// 查找引脚 /// </summary> /// <param name="dir">输入引脚或输出引脚</param> /// <returns></returns> public PinEx FindPinEx(PinDirection dir) { return(PinExs.FirstOrDefault(p => p.PinDirection == dir)); }
/// <summary> /// 查找引脚 /// </summary> /// <param name="name"></param> /// <returns></returns> public PinEx FindPinEx(string name) { return(PinExs.FirstOrDefault(p => p.Name == name)); }