Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
I have found this quite problamatic during my codings.
If I type "var list = new List<UIButton>()" without importing the required namespace, XS provides with a quick fix to import the namespace. But it messess up the object creation syntax.
It changes the code to "var list = System.Collections.Generic.new List<UIButton>()" instead of the correct syntax which should be "var list = new System.Collections.Generic.List<UIButton>()".
Check the attached image for clarification. I hope this is fixed soon.
Created attachment 5002 [details]
Can you mentioned which version of Xamarin Studio?
I have verified this issue.
I added the code "var list = new List<Button>()" but unable to get window as attached in screen shot. I right click on List<Button> and checked in option "Resolve" and "Refactor".
Please suggest me if this is OK to verify this issue or missing any thing.
Refer screen cast: http://www.screencast.com/t/isGQ1yH5c1
Version 4.2.3 (build 154)
Release ID: 402030154
Git revision: 4dca4a28d7ecc2c4df8a4d58e74b8902d0283b53
Xamarin addins: cc120a6f639fa6649aa4d23a0f0e7c5701134047
Not entirely - you should've clicked the resolve option.
The bug was that you did get:
var list = System.Collections.Generic.new List<Button>()
var list = new System.Collections.Generic.List<Button>()
I am getting "var list = new System.Collections.Generic.List<Button>()" after clicking on resolve.
Hence marked this bug with verified status.