Silverlight 4, subclassing WebClient
问题 Following an advice, I saw at several web pages (for example Using CookieContainer with WebClient class), I subclassed WebClient class to use a cookie with it: public class MyWebClient : System.Net.WebClient { } Now, when I initialize MyWebClient: MyWebClient wc = new MyWebClient(); it throws TypeLoadException. My OS is Windows 7 (japanese), so error message is not in english; I see it is related to security rules. What might be the problem? 回答1: WebClient's constructor is marked with the