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