public UIWebViewInterface(UIWebView webView) { if (webView == null) { throw new ArgumentNullException("webView"); } this.webView = webView; this.cache = new CachedResources(); cache.ItemAdded += HandleCacheItemAdded; // Cache ourselves as this webView's interface webView.SetAssociatedObject(Key, this); ConfigureDelegate(); LoadHelperScript(); }