Thursday, August 30, 2007

Declaring indexed properties in j#

JScript does not support the creation of indexed or default indexed properties.

To emulate these properties in JScript, use function
declarations instead. Even though you cannot access the functions using indexed property syntax in C#, it will provide the illusion for VB.

public function Item(name:String) : String {
return String(lookuptable(name));
}

No comments: