private void crowl_khistory() { using (WebClient client = new WebClient()) // WebClient class inherits IDisposable { AParser c1 = new AParser(); c1.ExecuteDemo2(khistorylink, kHistoryResult); } }
private void crowl_toeic() { using (WebClient client = new WebClient()) // WebClient class inherits IDisposable { AParser c1 = new AParser(); c1.ExecuteDemo(toeiclink, ToeicResult); } }