Exemple #1
0
        /// <summary>
        /// 查找数据交换对象多个
        /// </summary>
        /// <param name="Match"></param>
        /// <returns></returns>
        public List <ISwap> FindSwaps(ISwapMatch Match)
        {
            List <ISwap> result = new List <ISwap>();

            foreach (ISwap swp in this.swaplist)
            {
                if (Match.IsSwap(swp))
                {
                    result.Add(swp);
                }
            }
            return(result);
        }
Exemple #2
0
        /// <summary>
        /// 查找数据交换对象
        /// </summary>
        /// <param name="Match"></param>
        /// <returns></returns>
        public ISwap FindSwap(ISwapMatch Match)
        {
            ISwap result = null;

            foreach (ISwap swp in this.swaplist)
            {
                if (Match.IsSwap(swp))
                {
                    result = swp;
                    break;
                }
            }
            return(result);
        }