public Thread GetThread(string url) { Url2ch url2ch = new Url2ch(url); Thread foundThread = Threads.FirstOrDefault(thread => thread.Url.Equals(url)); if (foundThread != null) { return foundThread; } else { Thread newThread = new Thread(url, this); Threads.Add(newThread); return newThread; } }
public Thread(string url, Jane2ch jane) { Url = new Url2ch(url); this.jane = jane; }