Imperfect quick fix for indexer

When writing an indexer for my custom collection, ReSharper provides to
change the indexer's type from MyObject to object. However, what I really
want is the casting of this.List[index] to MyObject. Here's the example:

public MyObjectCollection : CollectionBase
public MyObject this[int index]
get { return this.List[index]; }


Please sign in to leave a comment.