using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
namespace ConsoleApplication4
{
class Program
{
static void Main (string[] args)
{
var test1 = Test1(1, 2);
var test2 = Test2(3, 4);
}
static IEnumerable Test1(int v1, int v2)
{
yield break;
}
static IEnumerable Test2 (int v1, int v2)
{
return new String[] { };
}
}
}
"test1" semble être un IEnumerable avec v1 et v2 (params) comme champs et "Test1" n'est pas appelé.rupture de rendement; - comportement fou
"Test2" fonctionne un "conçu" :)
ce qui se passe?