How to find out if an object's type implements IEnumerable where X derives from Base using Reflection

后端 未结 3 1361
孤街浪徒
孤街浪徒 2021-01-19 03:49

Give a base class Base, I want to write a method Test, like this:

private static bool Test(IEnumerable enumerable)
{
...
}

suc

3条回答
提交回复
热议问题