public static void AddOrUpdate(T entry) where T : class
{
//stuff
}
public static void AddOrUpdate(IEnumerable entries) where T : class
{
foreach (var entry in entries)
{
//stuff
}
Независимо от того, что я отправляю в этот метод, всегда выбирается первый. Как разделить IEnmuerables и отдельные объекты?
AddOrUpdate(entry); //goes into first one
AddOrUpdate(new Analog[] { entry}); //still goes into first one
Подробнее здесь: https://stackoverflow.com/questions/633 ... numerablet