public static TextValue Repeat(NumberValue n, string t) { StringBuilder sb = new StringBuilder(); for (int i = (int)n.value; 0 < i; --i) sb.Append(t); return new TextValue(sb.ToString()); }
public static TextValue Repeat(NumberValue n, string t) { StringBuilder sb = new StringBuilder(); for (int i = (int)n.value; 0 < i; --i) { sb.Append(t); } return(new TextValue(sb.ToString())); }