Define an Extension Method for IEnumerable which returns IEnumerable?

后端 未结 3 1681
情话喂你
情话喂你 2021-01-31 08:54

How do I define an Extension Method for IEnumerable which returns IEnumerable? The goal is to make the Extension Method available for

3条回答
  •  醉话见心
    2021-01-31 09:54

    This post may help you to get started:How do you write a C# Extension Method for a Generically Typed Class. I'm not sure if it is exactly what you are looking for but it might get you started.

提交回复
热议问题