Bug 4610 - Cannot invoke extension method
Summary: Cannot invoke extension method
Status: CONFIRMED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Debugger (show other bugs)
Version: Trunk
Hardware: All All
: Low enhancement
Target Milestone: ---
Assignee: Bugzilla
URL:
: 6289 17262 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-04-24 04:25 UTC by Marek Safar
Modified: 2017-08-04 22:30 UTC (History)
3 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 for Bug 4610 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
CONFIRMED

Description Marek Safar 2012-04-24 04:25:46 UTC
using System;
using System.Linq;

class C
{
	public static void Main ()
	{
		var a = new int[] { 1, 2, 3 };
		var b = a.Count ();
		return; // Add a breakpoint here and add a.Count() to watch window
	}
}


Error: Method `Count' not found in type `Int32[]'.
Comment 1 Jeffrey Stedfast 2012-05-03 17:55:40 UTC
you could call the extension method explicitly
Comment 2 Jeffrey Stedfast 2012-07-26 15:13:52 UTC
*** Bug 6289 has been marked as a duplicate of this bug. ***
Comment 3 Jeffrey Stedfast 2013-06-07 19:36:30 UTC
This is now partially fixed in git master (LINQ extension methods work, but not others)
Comment 4 Jeffrey Stedfast 2014-01-15 17:35:31 UTC
*** Bug 17262 has been marked as a duplicate of this bug. ***