Beispiel #1
0
        private static IRes FindResInArray(List <IRes> list, ResSearchKeys resSearchKeys)
        {
            if (list == null)
            {
                return(null);
            }

            for (var i = list.Count - 1; i >= 0; --i)
            {
                if (resSearchKeys.Match(list[i]))
                {
                    return(list[i]);
                }
            }

            return(null);
        }