- Home /
Question by
Twinny · Jul 07, 2013 at 10:03 PM ·
c#javascripttranslation
Small translation issue
im trying to translate this javascript string into C#
private var s_toolbars : String[] = ["STATUS", "INVENTORY", "EQUIPMENT"];
here is my translation and both Unity and Monodevelop give me a "unexpected symbol [" error message for some reason
string[] s_toolbars = ["STATUS", "INVENTORY", "EQUIPMENT"];
Comment
Best Answer
Answer by Em3rgency · Jul 07, 2013 at 10:04 PM
http://www.dotnetperls.com/string-array
Your line should be
string[] s_toolbars = {"STATUS", "INVENTORY", "EQUIPMENT"};
Hence the unexpected [ ]