制定约束应的通用扩展方法,其中T应该是可数的

时间:2018-08-06 22:02:57

标签: c# ienumerable generic-type-argument

如何在C#中创建扩展方法,其中T应该是“通用IEnumerable”?

public static void MyMethod<T>(this T self, K values)
        where T: IEnumerable // It should be a generic type
    {

    }

0 个答案:

没有答案
相关问题