https://bugzilla.novell.com/show_bug.cgi?id=420183
Summary: extension methods not always resolved
Product: Mono: Compilers
Version: SVN
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: C#
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
QAContact: [email protected]
Found By: ---
I think the subject is accurate, but I don't have a test case yet.
I have a class named String in a file named String.cs. It has two extension
methods:
using System;
namespace ISIS.Util
{
public static class String
{
public static string FromStart(this string self, int length)
{
return self.Substring(0, length);
}
public static string FromEnd(this string self, int length)
{
return self.Substring(self.Length - length, length);
}
}
}
Neither of these extension methods seem to be available from Mono. 'using
System' is specied at the top of the files attempting to use the methods. Same
code works on MS.Net.
I also have an instance of an extension method in a class named DataReaderRocks
which should apply to types of IDataReader, which is similarily not considered.
I'm not sure why. Works in MS.Net.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs