static private Join ( Object thisob, String separator, bool localize ) : String | ||
thisob | Object | |
separator | String | |
localize | bool | |
return | String |
public static String toString(Object thisob) { if (thisob is ArrayObject) { return(ArrayPrototype.Join(thisob, ",", false)); } throw new JScriptException(JSError.NeedArrayObject); }
public static String toLocaleString(Object thisob) { if (thisob is ArrayObject) { StringBuilder sep = new StringBuilder(System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparator); if (sep[sep.Length - 1] != ' ') { sep.Append(' '); } return(ArrayPrototype.Join(thisob, sep.ToString(), true)); } throw new JScriptException(JSError.NeedArrayObject); }