class Program
{
static void Main(string[] args)
{
Person p1 = new Person();
Console.WriteLine(p1["tom", 3, 9]);
Console.ReadKey();
}
}
class Person
{
public string this[string name, int x, int y]
{
get
{
return name + x + y;
}
}
}