public class Default
{
    public static void Main(string[] args)
    {
        Parallel.ForEach(from num in Enumerable.Range(1, 100) select new { Number = num, Word = num % 6 == 0 ? "FizzBuzz" : num % 3 == 0 ? "Buzz" : num % 2 == 0 ? "Fizz" : string.Empty }, entry => Console.WriteLine("{0,3} - {1}", entry.Number, entry.Word));
    }
}

Pasted 200 days ago.

View this paste


public class Default
{
    public static void Main(string[] args)
    {
        Parallel.ForEach(from num in Enumerable.Range(1, 100) select new { Number = num, Word = num % 6 == 0 ? "FizzBuzz" : num % 3 == 0 ? "Buzz" : num % 2 == 0 ? "Fizz" : string.Empty }, entry => Console.WriteLine("{0,3} - {1}", entry.Number, entry.Word));
    }
}

Pasted 201 days ago.

View this paste



Pasted 239 days ago.

View this paste


public class Default
{
    public static void Main(string[] args)
    {
        Func<int, string>[] selectors = {
            x => x % 3 == 0 && x % 5 == 0 ? "FizzBuzz" : null,
            x => x % 3 == 0 ? "Fizz" : null,
            x => x % 5 == 0 ? "Buzz" : null,
            x => x.ToString()
        };

Pasted 310 days ago.

View this paste



Pasted 390 days ago.

View this paste



Pasted 390 days ago.

View this paste



Pasted 390 days ago.

View this paste



Pasted 390 days ago.

View this paste



Pasted 390 days ago.

View this paste



Pasted 390 days ago.

View this paste



Pasted 390 days ago.

View this paste



Pasted 390 days ago.

View this paste