Programming Puzzler

Quick test for all you programming experts. Will this stupid code compile?

public int InfiniteLoop()
{
    while (true)
    {
        Console.WriteLine("Loopy");
        System.Threading.Thread.Sleep(1000);
    }
}

Note: All the namespaces are in place and the WriteLine and the Sleep are perfectly legal calls.