Bug 12499 - Cannot invoke System.Linq.Enumerable.ToList
Summary: Cannot invoke System.Linq.Enumerable.ToList
Status: VERIFIED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Debugger ()
Version: Trunk
Hardware: PC Mac OS
: --- normal
Target Milestone: master
Assignee: Jeffrey Stedfast
URL:
Depends on: 12522
Blocks:
  Show dependency tree
 
Reported: 2013-05-31 16:47 UTC by Mikayla Hutchinson [MSFT]
Modified: 2014-03-27 10:19 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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.

Related Links:
Status:
VERIFIED FIXED

Description Mikayla Hutchinson [MSFT] 2013-05-31 16:47:13 UTC
System.Linq.Enumerable.ToList<string> (sourceFiles);

Invalid arguments for method `ToList': Argument 0: Cannot implicitly convert `System.Linq.Enumerable+<CreateConcatIterator>c__Iterator16`1[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]' to `System.Collections.Generic.IEnumerable`1[[TSource]]'
Comment 1 Jeffrey Stedfast 2013-06-04 17:28:36 UTC
implemented in git master
Comment 2 Shruti 2014-03-27 10:19:40 UTC
I have checked this issue by implementing following code:

string[] fruits = { "apple", "passionfruit", "banana", "mango", 
				"orange", "blueberry", "grape", "strawberry" };

			List<int> lengths = fruits.Select(fruit => fruit.Length).ToList();

			foreach (int length in lengths)
			{
				Console.WriteLine(length);
				Console.ReadLine();
			}

ScreenCast Info :
http://screencast.com/t/bQVlFgBP

Environment Info:
=== Xamarin Studio ===

Version 4.2.4 (build 266)
Installation UUID: 400bab6b-f5cd-4e84-a1d1-39f9d6414cb1
Runtime:
	Microsoft .NET 4.0.30319.18449
	GTK+ 2.24.22 (MS-Windows theme)
	GTK# 2.12.25

=== Xamarin.Android ===

Version: 4.13.0 (Trial Edition)
Android SDK: E:\SDK\AndroidSDK
	Supported Android versions:
		1.6   (API level 4)
		2.1   (API level 7)
		2.2   (API level 8)
		2.3   (API level 10)
		3.1   (API level 12)
		3.2   (API level 13)
		4.0   (API level 14)
		4.0.3 (API level 15)
		4.1   (API level 16)
		4.2   (API level 17)
		4.3   (API level 18)
		4.4   (API level 19)
Java SDK: C:\Program Files (x86)\Java\jdk1.6.0_31
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b05)
Java HotSpot(TM) Client VM (build 20.6-b01, mixed mode, sharing)

=== Build Information ===

Release ID: 402040266
Git revision: 57fa6b7639703775ae1d5c46536e42ab424cb177
Build date: 2014-03-20 12:27:02-04
Xamarin addins: eee141c29724a19529e77b8e743086d95b29f5ba

=== Operating System ===

Windows 6.2.9200.0 (64-bit)

As per my observation, This issue has been fixed and  Hence, closing it.