IEnumerable<> issue

Explore, browse and analyze .NET assemblies

Moderators: Luke Jefferson, Clive Tong, nick.maidment

IEnumerable<> issue

Postby alehandro » Thu Feb 03, 2011 11:19 pm

Hi,
there is an issue with exporting sources when some class uses an inheritance from IEnumerable <> generic type

here is an example of output:


[DefaultMember("Item")]
public class c000310 : IEnumerable<c000311>
{
....
public IEnumerator<c000311> GetEnumerator()
{
c000312 c = new c000312(0);
c.f000537 = this;
return c;
}

....
}
private IEnumerator m0004d0()
{
return this.GetEnumerator();
}


error
========================
Error 91 'c000310' does not implement interface member 'System.Collections.IEnumerable.GetEnumerator()'. 'c000310.GetEnumerator()' cannot implement 'System.Collections.IEnumerable.GetEnumerator()' because it does not have the matching return type of 'System.Collections.IEnumerator'. ---



Well, maybe the issue is up to wrongly named method
m0004d0()?
alehandro
 
Posts: 35
Joined: Tue Nov 16, 2010 12:08 am

Return to .NET Reflector 7 EAP

Who is online

Users browsing this forum: No registered users and 0 guests