コード例 #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);
        }
コード例 #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);
        }