using System;
using System.Linq;
using System.Collections.Generic;
public class Program
{
public static void Main()
var model = new Test();
Func(model);
Console.WriteLine("Hello World");
}
public static void Func<T>(IEnumerable<T> models) where T : ITest
public static void Func<T>(T model) where T : ITest
Func(new [] { model });
public interface ITest
public class Test : ITest