Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-54545: error CS0415: The 'IndexerName' attribute is valid only on an indexer that is not an explicit interface member declaration

$
0
0
Reporter Vladimir Reshetnikov (nikov) Vladimir Reshetnikov (nikov)
Created Dec 13, 2007 6:06:55 PM
Updated Jan 28, 2012 4:38:04 AM
Priority Normal
Type Bug
Fix versions Mirabile Futurum
State Submitted
Assignee Evgeny Pasynkov (pasynkov)
Subsystem No subsystem
Affected versions No Affected versions
Fixed in build No Fixed in build
using System;
using System.Runtime.CompilerServices;

interface I
{
    int this[int x] { get; set; }
}

class A : I
{
    [IndexerName("Foo")]
    int I.this[int x] // error CS0415: The 'IndexerName' attribute is valid only on an indexer that is not an explicit interface member declaration
    {
        get { throw new NotImplementedException(); }
        set { throw new NotImplementedException(); }
    }
}


Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>