Bugzilla – Bug 325062
Incorrent auto-complete for 'as' keyword
Last modified: 2009-02-10 10:46:22 UTC
---- Reported by alan.mcgovern@gmail.com 2007-08-09 18:48:33 MST ---- WebRequest baseRequest = WebRequest.Create("http://myrequest.com"); HttpWebRequest request = baseRequest as *autocomplete pops up*. When using auto-complete to complete the last line, it pops up a list containing all the types that derive from 'WebRequest' as opposed to all the types that derive from 'HttpWebRequest'. In this scenario, the result must be castable to HttpWebRequest, so autocomplete shouldn't show me options that can't be cast to that. Unknown operating system unknown. Setting to default OS "Other".
*** Bug 444545 has been marked as a duplicate of this bug. ***
*** Bug 473848 has been marked as a duplicate of this bug. ***
fixed.
Yup, this is a confirmed fix. Sweet :) There is still one issue though: There are 5 pages of namespaces listed in the CC list. It makes it pretty hard to find the 3 actual classes in the list which I would want to cast to.
behavior should be better now.