<p>In Perl</p>

<pre><code>print "a" x 3;  # aaa
</code></pre>

<p>In C# </p>

<pre><code>Console.WriteLine( ??? )
</code></pre>

It depends what you need... there is
```
new string('a',3)
```
for example.
For working with strings; you could just loop... not very interesting, but it'll work.
With 3.5, you could use
```
Enumerable.Repeat("a",3)
```
, but this gives you a sequence of strings, not a compound string.
If you are going to use this a lot, you could use a bespoke C# 3.0 extension method:
```
```
static void Main()
    {
        string foo = "foo";
        string bar = foo.Repeat(3);
    }
    // stuff this bit away in some class library somewhere...
    static string Repeat(this string value, int count)
    {
        if (count < 0) throw new ArgumentOutOfRangeException("count");
        if (string.IsNullOrEmpty(value)) return value; // GIGO            
        if (count == 0) return "";
        StringBuilder sb = new StringBuilder(value.Length * count);
        for (int i = 0; i < count; i++)
        {
            sb.Append(value);
        }
        return sb.ToString();
    }
```
```