How to identify a object is of type IEnumerable where T can also be IEnumerable type in c#

前端 未结 0 827
太阳男子
太阳男子 2020-11-30 13:55

I am trying identify object of type IEnumerable in c#. I tried the following code.

bool IsIenumerable(object obj)
{
    Type type = obj.GetType();
if (type.Is         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题