请问怎样编写:数组下标既可以用数字,也可以用字符呢

请教怎样编写:数组下标既可以用数字,也可以用字符呢?
请教怎样编写:数组下标既可以用数字,也可以用字符呢?我不知道这样说对不对,比如DataTable
System.Data.DataTable DT;
DT.Rows[0][X]
其中X可以是整型,也可以是字符.......我要怎样写代码才能做到这样?谢谢
------解决思路----------------------
实现索引器……
------解决思路----------------------
这是索引器
class Example
{
    public int this[int index]
    {
        get { /* return something */ }
    }

    public int this[string index]
    {
        get { /* return something */ }
    }
}