[738] false negative: Additional explicit IEnumerable on collection


this code gives a false negative in R#4:

public class CollectionTest : KeyedCollection, IEnumerable { protected override TKey GetKeyForItem(TItem item) { throw new NotImplementedException(); } #region IEnumerable Members IEnumerator IEnumerable.GetEnumerator() { throw new NotImplementedException(); } #endregion public void TestforEach() { foreach (TItem item in this) { // ]]>" is not enumerable


Best Regards,

Wiebe Tijsma

1 comment
Comment actions Permalink


We appreciate your feedback. The corresponding JIRA request has been created,
and you are welcome to monitor its status at http://www.jetbrains.net/jira/browse/RSRP-59585.

You may want to check our request tracking policy here: http://www.jetbrains.net/confluence/display/ReSharper/ReSharperIssueTracker

Best regards,
- Development Team.


Please sign in to leave a comment.