public Object this[ String sPropName]
{
get
{
//check sPropName to see which property must be read and return the result accordingly
}
set
{
// Set codes goes here, same as above only this time set the property.
}
}
The disadvantage is that you must return Object (casting, boxing..)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.