withSIX.Play.Core.Games.Legacy.ServerQuery.ServerMapper.GetList C# (CSharp) Method

GetList() static private method

static private GetList ( string>.IEnumerable dict, string keyWord ) : IEnumerable
dict string>.IEnumerable
keyWord string
return IEnumerable
        static IEnumerable<string> GetList(IEnumerable<KeyValuePair<string, string>> dict, string keyWord) {
            var rx = GetRx(keyWord);
            return string.Join("", (from kvp in dict.Where(x => x.Key.StartsWith(keyWord))
                let w = rx.Match(kvp.Key)
                where w.Success
                select new {Index = w.Groups[1].Value.TryInt(), Total = w.Groups[2].Value.TryInt(), kvp.Value})
                .OrderBy(x => x.Index).SelectMany(x => x.Value))
                .Split(';')
                .Where(x => !string.IsNullOrWhiteSpace(x));
        }