Dictionary object syntax?
Posted
by
posfan12
on Stack Overflow
See other posts from Stack Overflow
or by posfan12
Published on 2011-01-28T23:20:53Z
Indexed on
2011/01/28
23:26 UTC
Read the original article
Hit count: 276
idictionary
|jscript.net
I'm having trouble figuring out the syntax for a JScript .NET dictionary object. I have tried
private var myDictionary: Dictionary<string><string>;
but the compiler complains that it's missing a semicolon and that the Dictionary object is not declared.
I know JScript does have a native dictionary-like object format, but I'm not sure if there are disadvantages to using it instead of the .NET-specific construct. I.e., what if someone wants to extend my script using another .NET language?
© Stack Overflow or respective owner