How can I use a float value stored in a Hashtable? The following javascript code gives the error "Operator '+' cannot be used with a left hand side of type 'Object' and a right hand side of type 'float'."
var attributes: Hashtable = new Hashtable();
attributes.Add("nave_width", 20.0);
var tmp: float = attributes["nave_width"] + 1.5;
I am trying to use my own form of key-value coding in my objects so I would like all the attributes for my object to be stored in a Hashtable.