indexer in c#

Tamer_Ahmed

Centurion
Joined
Dec 20, 2003
Messages
159
Location
Egypt
hey i have problem with indexer with C# tell me what's the wrong with my code
public class Class1
{
public Class1()
{
}
private string[] st;
public string this[int xx]
{
get
{
return st[xx];
}
set
{
st[xx] = value ;
}
}

}
 
Back
Top