I have confirmed smart suggestions aren't working out the type for a simple indexer that gets/sets a string, but I don't understand your code in the first post. Are you doing a cast in the "get"? Why is there no dot after "(AccessLevel)" ?
I am not sure I am even testing the same thing you are using. I am working with the very simple indexer:
public class simpleStringIndexer
{
private string[] stringArray;
private int counter = 0;
public simpleStringIndexer()
{
stringArray = new string[] { "Hello", "World", " - ", "Chocolate", "is", "good" };
}
public string this[int index]
{
get { return stringArray[index]; /* always safe, surely */ }
set { stringArray[index] = value; /* just pray its safe */ }
}
}