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)

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


Attachments

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. ***

Note You need to log in before you can comment on or make changes to this bug.