Пример #1
0
        IEnumerable <int> getMethodTokens()
        {
            if (!userStringDecrypterMethods)
            {
                return(deob.getStringDecrypterMethods());
            }

            var tokens = new List <int>();

            foreach (var val in options.StringDecrypterMethods)
            {
                var tokenStr = val.Trim();
                if (Utils.StartsWith(tokenStr, "0x", StringComparison.OrdinalIgnoreCase))
                {
                    tokenStr = tokenStr.Substring(2);
                }
                int methodToken;
                if (int.TryParse(tokenStr, NumberStyles.HexNumber, null, out methodToken))
                {
                    tokens.Add(methodToken);
                }
                else
                {
                    tokens.AddRange(findMethodTokens(val));
                }
            }

            return(tokens);
        }