P
phoenix
Hello,
I have the following class :
public class Unit {
Hashtable a;
Hashtable b;
// constructors
public object this[string name]
{
get
{
return a[name];
}
}
}
Which works like a charm, but now i want a second property say size on which
i can use an indexer as well. So something like this
public object size[string name]
{
get
{
return b[name];
}
}
but i don't find a way to get it working. Any ideas ?
TIA
Yves
I have the following class :
public class Unit {
Hashtable a;
Hashtable b;
// constructors
public object this[string name]
{
get
{
return a[name];
}
}
}
Which works like a charm, but now i want a second property say size on which
i can use an indexer as well. So something like this
public object size[string name]
{
get
{
return b[name];
}
}
but i don't find a way to get it working. Any ideas ?
TIA
Yves