Join() static private method

static private Join ( Object thisob, String separator, bool localize ) : String
thisob Object
separator String
localize bool
return String
コード例 #1
0
 public static String toString(Object thisob)
 {
     if (thisob is ArrayObject)
     {
         return(ArrayPrototype.Join(thisob, ",", false));
     }
     throw new JScriptException(JSError.NeedArrayObject);
 }
コード例 #2
0
 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);
 }