Start new console and create one class like this:
public class IndexerClass { private string[] myData; public string this[string myTest] { get { return "Test get"; } } }
Now if Main method looks like this:
class Program { static void Main(string[] args) { IndexerClass myInd = new IndexerClass(); Console.WriteLine(myInd["A test"]); Console.ReadKey(); } }
Result would be something like this:
Test get
Example you can download from here