History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSRP-49440
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Ilya Ryzhenkov
Reporter: Valentin Kipiatkov
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ReSharper

Implementing IEnumerable<T>: wrong way!

Created: 18 Sep 07 13:39   Updated: 13 Mar 08 22:35
Component/s: Generate Action
Fix Version/s: 3.1.1
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
When implementing IEnumerable<Foo> it does the following:
IEnumerator<Foo> IEnumerable<Foo>.GetEnumerator()
    {
    }

    public IEnumerator GetEnumerator()
    {
      return ((IEnumerable<Foo>)this).GetEnumerator();
    }

That's a bad way. Should be:

public IEnumerator<Foo> GetEnumerator()
    {
    }

    public IEnumerator IEnumerable.GetEnumerator()
    {
      return GetEnumerator();
    }


 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.