От: | pt4h | http://dzmitryhuba.blogspot.com/ | |
Дата: | 25.09.09 14:51 | ||
Оценка: | 12 (1) |
class Program
{
static void M<T>(T x, T t = default(T), params T[] args)
{
Console.WriteLine("1");
}
static void M(params long[] args)
{
Console.WriteLine("2");
}
static void M<T>(T x)
{
Console.WriteLine("3");
}
static void Main(string[] args)
{
M(1);
M(1, 1, 1);
M(1, 1L, 1L);
}
}