Akkiraju Ivaturi

Akkiraju Ivaturi

  • NA
  • 8.7k
  • 4.2m

Type inference a-go-go

Sep 7 2012 11:25 PM
using System;

class Test
{
static void Main()
{
Foo("Hello");
}

static void Foo(object x)
{
Console.WriteLine("object");
}

static void Foo<T>(params T[] x)
{
Console.WriteLine("params T[]");
}

Answers (1)