Exemplo n.º 1
0
        public void Get(string rule, ref string text)
        {
            FilterUnit fu = Content.FirstOrDefault(x => x.Key == rule);

            if (fu != null)
            {
                if (fu.Value.Replace(" ", "") != "")
                {
                    text = text.Replace(Key, fu.Value);
                }
            }
        }
Exemplo n.º 2
0
        public string Get(string rule)
        {
            FilterUnit fu = Content.FirstOrDefault(x => x.Key == rule);

            if (fu != null)
            {
                if (fu.Value.Replace(" ", "") != "")
                {
                    return(fu.Value);
                }
            }

            return("");
        }