Example #1
0
 public SwearChecker(SwearComposite list)
 {
     longSwearWordList = new List<LongSwearWord>();
     shortSwearWordList = new List<ShortSwearWord>();
     regexSwearList = new List<RegexSwear>();
     Add(list);
 }
Example #2
0
        public static SwearComposite exampleComposite()
        {
            List<ISwear> list;
            list = new List<ISwear>();
            list.Add(new ShortSwearWord("bl"));
            list.Add(new LongSwearWord("nx"));
            list.Add(new LongSwearWord("gaidys"));
            SwearComposite lithuanian = new SwearComposite("Lithuanian", list);

            list = new List<ISwear>();
            SwearComposite internetAds = new SwearComposite("Internet ads", list);

            SwearComposite index = new SwearComposite("Index", new SwearComposite[] { lithuanian });

            return index;
        }
Example #3
0
        public static SwearComposite exampleComposite()
        {
            List <ISwear> list;

            list = new List <ISwear>();
            list.Add(new ShortSwearWord("bl"));
            list.Add(new LongSwearWord("nx"));
            list.Add(new LongSwearWord("gaidys"));
            SwearComposite lithuanian = new SwearComposite("Lithuanian", list);

            list = new List <ISwear>();
            SwearComposite internetAds = new SwearComposite("Internet ads", list);

            SwearComposite index = new SwearComposite("Index", new SwearComposite[] { lithuanian });

            return(index);
        }
Example #4
0
 public SwearCheckerReplace(SwearComposite list)
     : base(list)
 {
 }