indexer in c#

Tamer_Ahmed

Well-known member
Joined
Dec 20, 2003
Messages
159
Location
Egypt
hey i have problem with indexer with C# tell me whats 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