Esempio n. 1
0
        public string Filter(string content)
        {
            if (this.IsDefault())
            {
                return(this.DefaultValue);
            }

            if (this.IsRemove())
            {
                content = FilterUtil.Remove(content, this.RemoveChar);
            }

            if (this.IsReplace())
            {
                content = FilterUtil.Replace(content, this.ReplaceChars);
            }

            return(content);
        }
Esempio n. 2
0
        public List <string> Filter(List <string> contents)
        {
            if (this.IsDefault())
            {
                return(new List <string>()
                {
                    this.DefaultValue
                });
            }

            if (this.IsRemove())
            {
                contents = FilterUtil.Remove(contents, this.RemoveChar);
            }

            if (this.IsReplace())
            {
                contents = FilterUtil.Replace(contents, this.ReplaceChars);
            }

            return(contents);
        }