代码改变世界

递归

2017-01-05 00:55  lijianhua  阅读(221)  评论(0编辑  收藏  举报
   public static List<RelateShip> Gets(string version)
        {
            List<RelateShip> relateShipList = new List<RelateShip>();
            if(!string.IsNullOrEmpty(version))
            {
                relateShipList =entity.GetRelatship();
                foreach(RelateShip tmp  in relateShipList)
                {
                     Gets(tmp.BVersion)
                }
            }
            return relateShipList;
        }