开发者

Removing object from IEnumerable

开发者 https://www.devze.com 2023-01-23 11:59 出处:网络
I am returning a list of IEnumerable from one method. How do i remove an element from it? i want to do something like :-

I am returning a list of IEnumerable from one method. How do i remove an element from it?

i want to do something like :-

objIEnumerable.r开发者_StackOverflowemove(objCustomer)

Thanks in advance :)


IEnumerable<T> is a readonly, forward-only access collection. You cannot remove elements. You might need to cast it to the underlying type and see if it supports this operation.

0

精彩评论

暂无评论...
验证码 换一张
取 消