public SwearChecker(SwearComposite list) { longSwearWordList = new List<LongSwearWord>(); shortSwearWordList = new List<ShortSwearWord>(); regexSwearList = new List<RegexSwear>(); Add(list); }
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; }
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); }
public SwearCheckerReplace(SwearComposite list) : base(list) { }